$NetBSD: patch-ah,v 1.1.1.1 1999/11/17 16:17:03 drochner Exp $ --- src/BASE_MapFile.cxx.orig Sun Nov 7 01:08:03 1999 +++ src/BASE_MapFile.cxx Sun Nov 7 01:08:18 1999 @@ -140,14 +140,14 @@ #include #if defined(R__HPUX) || defined (R__ALPHA) || defined (R__SOLARIS) || \ defined(R__AIX) || defined(R__HIUX) || defined (R__MKLINUX) || \ - __GLIBC_MINOR__ > 0 + __GLIBC_MINOR__ > 0 || defined (R__FBSD) /* XXX */ union semun { int val; // value for SETVAL struct semid_ds *buf; // buffer for IPC_STAT & IPC_SET ushort *array; // array for GETALL & SETALL }; #endif -#ifdef R__LINUX +#ifndef SEM_A # define SEM_A 0200 // alter permission # define SEM_R 0400 // read permission #endif