-static char *rcsId = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/compat/semaphore.c,v 1.2 2004-08-27 13:00:33 hadaq Exp $";
+static char *rcsId = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/compat/semaphore.c,v 1.3 2006-01-24 14:15:05 hadaq Exp $";
#define _XOPEN_SOURCE
struct semid_ds *buf;
unsigned short *array;
};
+#endif
+
+#if ((defined(__linux) && __GNUC__ >2))
+union semun {
+ int val;
+ struct semid_ds *buf;
+ unsigned short *array;
+ struct seminfo *__buf;
+
+};
+
#endif