mm.h | mm.h | |||
---|---|---|---|---|
skipping to change at line 171 | skipping to change at line 171 | |||
#if !defined(MAP_FAILED) | #if !defined(MAP_FAILED) | |||
#define MAP_FAILED ((void *)-1) | #define MAP_FAILED ((void *)-1) | |||
#endif | #endif | |||
#endif | #endif | |||
#if defined(MM_SHMT_IPCSHM) || defined(MM_SEMT_IPCSEM) | #if defined(MM_SHMT_IPCSHM) || defined(MM_SEMT_IPCSEM) | |||
#include <sys/ipc.h> | #include <sys/ipc.h> | |||
#endif | #endif | |||
#if defined(MM_SHMT_IPCSHM) | #if defined(MM_SHMT_IPCSHM) | |||
#define KERNEL 1 /* For SunOS4 */ | #ifdef MM_OS_SUNOS | |||
#define _KMEMUSER /* For BS2000 to enable SHM_[RW] */ | #define KERNEL 1 | |||
#endif | ||||
#ifdef MM_OS_BS2000 | ||||
#define _KMEMUSER | ||||
#endif | ||||
#include <sys/shm.h> | #include <sys/shm.h> | |||
#ifdef MM_OS_SUNOS | ||||
#undef KERNEL | #undef KERNEL | |||
#endif | ||||
#ifdef MM_OS_BS2000 | ||||
#undef _KMEMUSER | #undef _KMEMUSER | |||
#endif | ||||
#if !defined(SHM_R) | #if !defined(SHM_R) | |||
#define SHM_R 0400 | #define SHM_R 0400 | |||
#endif | #endif | |||
#if !defined(SHM_W) | #if !defined(SHM_W) | |||
#define SHM_W 0200 | #define SHM_W 0200 | |||
#endif | #endif | |||
#endif | #endif | |||
#ifdef MM_SHMT_BEOS | #ifdef MM_SHMT_BEOS | |||
#include <kernel/OS.h> | #include <kernel/OS.h> | |||
End of changes. 4 change blocks. | ||||
2 lines changed or deleted | 10 lines changed or added | |||