aboutsummaryrefslogtreecommitdiff
path: root/include/mqueue.h
diff options
context:
space:
mode:
authorDavid Xu <davidxu@FreeBSD.org>2005-11-30 07:26:36 +0000
committerDavid Xu <davidxu@FreeBSD.org>2005-11-30 07:26:36 +0000
commit1f4ae9be579b9636091f4e536656bc52fa6f4a3a (patch)
tree508590e119b532bcc8a11bfea524cb9e71c1bd58 /include/mqueue.h
parent8d3b309bad4632021b27ff4ebc6c5430a4c271d2 (diff)
downloadsrc-1f4ae9be579b9636091f4e536656bc52fa6f4a3a.tar.gz
src-1f4ae9be579b9636091f4e536656bc52fa6f4a3a.zip
Fix compiling for c++, include cdefs.h.
Notes
Notes: svn path=/head/; revision=152950
Diffstat (limited to 'include/mqueue.h')
-rw-r--r--include/mqueue.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mqueue.h b/include/mqueue.h
index ac32b80de58b..2c97451ae4dc 100644
--- a/include/mqueue.h
+++ b/include/mqueue.h
@@ -29,12 +29,14 @@
#ifndef _MQUEUE_H_
#define _MQUEUE_H_
+#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/mqueue.h>
struct sigevent;
struct timespec;
+__BEGIN_DECLS
int mq_close(mqd_t);
int mq_getattr(mqd_t, struct mq_attr *);
int mq_notify(mqd_t, const struct sigevent *);
@@ -48,4 +50,5 @@ ssize_t mq_timedreceive(mqd_t, char *__restrict, size_t,
int mq_timedsend(mqd_t, const char *, size_t, unsigned,
const struct timespec *);
int mq_unlink(const char *);
+__END_DECLS
#endif