summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/sys/shm.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/sys/sys/shm.h b/sys/sys/shm.h
index ced7aff..0e6b86b 100644
--- a/sys/sys/shm.h
+++ b/sys/sys/shm.h
@@ -39,7 +39,9 @@
#ifndef _SYS_SHM_H_
#define _SYS_SHM_H_
+#include <sys/cdefs.h>
#include <sys/ipc.h>
+#include <sys/_types.h>
#define SHM_RDONLY 010000 /* Attach read-only (else read-write) */
#define SHM_RND 020000 /* Round attach address to SHMLBA */
@@ -58,6 +60,21 @@
#define SHM_STAT 13
#define SHM_INFO 14
+#ifndef _PID_T_DECLARED
+typedef __pid_t pid_t;
+#define _PID_T_DECLARED
+#endif
+
+#ifndef _TIME_T_DECLARED
+typedef __time_t time_t;
+#define _TIME_T_DECLARED
+#endif
+
+#ifndef _SIZE_T_DECLARED
+typedef __size_t size_t;
+#define _SIZE_T_DECLARED
+#endif
+
struct shmid_ds {
struct ipc_perm shm_perm; /* operation permission structure */
int shm_segsz; /* size of segment in bytes */
OpenPOWER on IntegriCloud