From aac4ad2c994742defc0623bd489206743241552c Mon Sep 17 00:00:00 2001 From: Peter Dufault Date: Sun, 8 Mar 1998 17:25:38 +0000 Subject: Reviewed by: bde Changes to support building with _POSIX_SOURCE set to 199309L: 1. Add sys/_posix.h to handle those preprocessor defs that POSIX says have effects when defined before including any header files; 2. Change POSIX4_VISIBLE back to _POSIX4_VISIBLE 3. Add _POSIX4_VISIBLE_HISTORICALLY for pre-existing BSD features now defined in POSIX. These show up when: _POSIX_SOURCE and _POSIX_C_SOURCE are not set or _POSIX_C_SOURCE is set >= 199309L and vanish when: _POSIX_SOURCE is set or _POSIX_C_SOURCE is < 199309L. 4. Explain these in man 9 posix4; 5. Include _posix.h and conditionalize on new feature test. --- sys/posix4/mqueue.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys/posix4/mqueue.h') diff --git a/sys/posix4/mqueue.h b/sys/posix4/mqueue.h index 0872ddf6266d..6fcf4409ed33 100644 --- a/sys/posix4/mqueue.h +++ b/sys/posix4/mqueue.h @@ -36,7 +36,7 @@ * */ -#ifdef POSIX4_INCLUDE_MAYBES +#ifdef _POSIX4_INCLUDE_MAYBES #include #include #include @@ -55,8 +55,10 @@ struct mq_attr { }; #ifndef KERNEL + #include +__BEGIN_DECLS mqd_t mq_open __P((const char *, int oflag, ...)); int mq_close __P((mqd_t)); int mq_unlink __P((const char *)); @@ -65,6 +67,7 @@ ssize_t mq_receive __P((mqd_t, char *, size_t, unsigned int *)); int mq_notify __P((mqd_t, const struct sigevent *)); int mq_setattr __P((mqd_t, const struct mq_attr *, struct mq_attr *)); int mq_getattr __P((mqd_t, struct mq_attr *)); +__END_DECLS #endif /* KERNEL */ -- cgit v1.2.3