Bulding root on intel / redhat 6.0 / egcs 1.1.2

Phil Adamson (p.adamson@sussex.ac.uk)
Wed, 19 May 1999 15:54:27 +0100 (BST)


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