From 7120e79dd63d6be445903c2c7ba61befecff64de Mon Sep 17 00:00:00 2001 From: Ricardo Rocha Date: Tue, 29 Sep 2009 00:56:58 +0100 Subject: [PATCH] include the library shm.h only when needed --- OPTYap/opt.macros.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OPTYap/opt.macros.h b/OPTYap/opt.macros.h index 1e86ad9cb..0064feaa4 100644 --- a/OPTYap/opt.macros.h +++ b/OPTYap/opt.macros.h @@ -13,11 +13,13 @@ ** Includes and defines ** ** ------------------------------ */ +#ifdef SHM_MEMORY_ALLOC_SCHEME #include #define SHMMAX 0x2000000 /* 32 Mbytes: works fine with linux */ /* #define SHMMAX 0x400000 - 4 Mbytes: shmget limit for Mac (?) */ /* #define SHMMAX 0x800000 - 8 Mbytes: shmget limit for Solaris (?) */ +#endif /* SHM_MEMORY_ALLOC_SCHEME */