Rudiments: /home/dmuse/temp/rudiments/include/rudiments/private/semaphoresetincludes.h Source File

Rudiments

semaphoresetincludes.h
1 // Copyright (c) 1999-2018 David Muse
2 // See the COPYING file for more information.
3
4 #include <rudiments/private/dll.h>
5
6 // for struct timespec (it includes inttypes.h as well)
7 #include <rudiments/private/snoozeincludes.h>
8
9 #include <sys/types.h>
10
11 // some systems need this for key_t
12 #ifdef RUDIMENTS_HAVE_SYS_IPC_H
13 #ifndef RUDIMENTS_SYS_IPC_H
14 #define RUDIMENTS_SYS_IPC_H
15 #include <sys/ipc.h>
16 #endif
17 #endif
18
19 struct sembuf;
20 union semun;
21
22 #ifndef IPC_PRIVATE
23 #define IPC_PRIVATE ((key_t)0)
24 #endif
25
26 class semaphoresetprivate;