summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/mqueue.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/include/mqueue.h b/include/mqueue.h
index c4582748..109123e4 100644
--- a/include/mqueue.h
+++ b/include/mqueue.h
@@ -1,11 +1,9 @@
#ifndef __MQUEUE_H
#define __MQUEUE_H
-#include <stddef.h>
-#include <time.h>
-#define __BITS_TIMESPEC_H_
-#include <bits/timespec.h>
-#undef __BITS_TIMESPEC_H_
+#include <sys/cdefs.h>
+
+__BEGIN_DECLS
#undef O_RDONLY
#define O_RDONLY 000000000
@@ -26,6 +24,7 @@ typedef __SIZE_TYPE__ size_t;
typedef __INT64_TYPE__ ssize_t;
struct sigevent;
+struct timespec;
struct mq_attr {
long mq_flags;
long mq_maxmsg;
@@ -46,4 +45,6 @@ int mq_timedsend(mqd_t, const char *, size_t, unsigned,
const struct timespec *);
int mq_unlink(const char *);
+__END_DECLS
+
#endif