Bulding root on intel / redhat 6.0 / egcs 1.1.2

From: Phil Adamson (p.adamson@sussex.ac.uk)
Date: Wed May 19 1999 - 16:54:27 MEST


It appears that sys/sem.h no longer defines union semun. Wildly trivial
patch:

--- src/BASE_MapFile.cxx	Mon Mar 29 14:43:07 1999
+++ src/BASE_MapFile.cxx.new	Wed May 19 15:44:08 1999
@@ -161,6 +161,15 @@
 #ifdef R__LINUX
 #  define       SEM_A   0200     // alter permission
 #  define       SEM_R   0400     // read permission
+#ifdef _SEM_SEMUN_UNDEFINED
+  union semun
+   {
+     int val;                      //     <= value for SETVAL
+     struct semid_ds *buf;         //     <= buffer for IPC_STAT & IPC_SET
+     unsigned short int *array;    //     <= array for GETALL & SETALL
+     struct seminfo *__buf;        //     <= buffer for IPC_INFO
+   };
+#endif
 #endif
 #endif


	Phil

   _/_/_/  _/  _/ _/ _/    P.Adamson@sussex.ac.uk  U Sussex / MINOS
  _/   _/ _/_/_/ _/ _/     I know that there are people who do not love their 
 _/_/_/  _/  _/ _/ _/_/_/  fellow human beings, and I hate people like that.
_/ PGP 1024/61A59EE9  28 1B C7 76 C5 02 FE C0  CE 05 E9 05 36 94 05 FB



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:33 MET