… | |
… | |
17 | #include <sys/socket.h> |
17 | #include <sys/socket.h> |
18 | #include <sys/stat.h> |
18 | #include <sys/stat.h> |
19 | #include <limits.h> |
19 | #include <limits.h> |
20 | #include <fcntl.h> |
20 | #include <fcntl.h> |
21 | #include <sched.h> |
21 | #include <sched.h> |
|
|
22 | |
|
|
23 | #if HAVE_SYS_MKDEV_H |
|
|
24 | # include <sys/mkdev.h> |
|
|
25 | #elif HAVE_SYS_SYSMACROS_H |
|
|
26 | # include <sys/sysmacros.h> |
|
|
27 | #endif |
22 | |
28 | |
23 | #if _POSIX_MEMLOCK || _POSIX_MEMLOCK_RANGE || _POSIX_MAPPED_FILES |
29 | #if _POSIX_MEMLOCK || _POSIX_MEMLOCK_RANGE || _POSIX_MAPPED_FILES |
24 | # include <sys/mman.h> |
30 | # include <sys/mman.h> |
25 | #endif |
31 | #endif |
26 | |
32 | |
… | |
… | |
188 | #endif |
194 | #endif |
189 | #ifndef minor |
195 | #ifndef minor |
190 | # define minor(dev) ((dev) & 0xff) |
196 | # define minor(dev) ((dev) & 0xff) |
191 | #endif |
197 | #endif |
192 | |
198 | |
|
|
199 | /* solaris has a non-posix/unix compliant PAGESIZE that breaks compilation */ |
|
|
200 | #ifdef __sun |
|
|
201 | # undef PAGESIZE |
|
|
202 | #endif |
|
|
203 | |
193 | #if PAGESIZE <= 0 |
204 | #if PAGESIZE <= 0 |
194 | # define PAGESIZE sysconf (_SC_PAGESIZE) |
205 | # define PAGESIZE sysconf (_SC_PAGESIZE) |
195 | #endif |
206 | #endif |
196 | |
207 | |
197 | /*****************************************************************************/ |
208 | /*****************************************************************************/ |