diff --git a/ChangeLog b/ChangeLog index 6108cd01..f34a7989 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +1998-07-17 Martin Baulig + + * sysdeps/linux/sem_limits.c: Applied patch from Albert K T Hui + for glibc 2.1. + 1998-07-15 Martin Baulig * sysdeps/sun4/loadavg.h: New file. Imported from top 3.4. diff --git a/sysdeps/linux/sem_limits.c b/sysdeps/linux/sem_limits.c index 88176f0b..19203a33 100644 --- a/sysdeps/linux/sem_limits.c +++ b/sysdeps/linux/sem_limits.c @@ -24,6 +24,16 @@ #include #include +#ifdef _SEM_SEMUN_UNDEFINED +union semun +{ + int val; + struct semid_ds *buf; + unsigned short int *array; + struct seminfo *__buf; +}; +#endif + static unsigned long _glibtop_sysdeps_sem_limits = (1 << GLIBTOP_IPC_SEMMAP) + (1 << GLIBTOP_IPC_SEMMNI) + (1 << GLIBTOP_IPC_SEMMNS) + (1 << GLIBTOP_IPC_SEMMNU) +