include the library shm.h only when needed

This commit is contained in:
Ricardo Rocha 2009-09-29 00:56:58 +01:00
parent 7d841065e9
commit 7120e79dd6
1 changed files with 2 additions and 0 deletions

View File

@ -13,11 +13,13 @@
** Includes and defines **
** ------------------------------ */
#ifdef SHM_MEMORY_ALLOC_SCHEME
#include <sys/shm.h>
#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 */