]> jspc29.x-matter.uni-frankfurt.de Git - daqdata.git/commitdiff
defined semun, Ingo
authorhadaq <hadaq>
Tue, 24 Jan 2006 14:15:05 +0000 (14:15 +0000)
committerhadaq <hadaq>
Tue, 24 Jan 2006 14:15:05 +0000 (14:15 +0000)
compat/semaphore.c

index b9679d91a43af164f3fb66c50c05b9674fe1e626..c74cd9bbfb4fbbadcbd1b7cfe35b0cd38d905658 100644 (file)
@@ -1,4 +1,4 @@
-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
@@ -21,6 +21,17 @@ union semun {
        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