summaryrefslogtreecommitdiffstats
path: root/sys/sys/shm.h
diff options
context:
space:
mode:
authorrodrigc <rodrigc@FreeBSD.org>2015-07-30 18:59:01 +0000
committerrodrigc <rodrigc@FreeBSD.org>2015-07-30 18:59:01 +0000
commit419fdebf3d0e363f8486e1422197f9c0009f12cf (patch)
tree73c984b1da5629edf976997ecfdbe7debd9128c4 /sys/sys/shm.h
parentca7adff0b82acb3e94fa89704aade20774b85bd1 (diff)
downloadFreeBSD-src-419fdebf3d0e363f8486e1422197f9c0009f12cf.zip
FreeBSD-src-419fdebf3d0e363f8486e1422197f9c0009f12cf.tar.gz
Get function prototypes for msg, shm, sem functions
from header files. Differential Revision: D2669
Diffstat (limited to 'sys/sys/shm.h')
-rw-r--r--sys/sys/shm.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/sys/shm.h b/sys/sys/shm.h
index 799bbf5..f685df3 100644
--- a/sys/sys/shm.h
+++ b/sys/sys/shm.h
@@ -144,8 +144,9 @@ struct vmspace;
void shmexit(struct vmspace *);
void shmfork(struct proc *, struct proc *);
-#else /* !_KERNEL */
+#endif /* _KERNEL */
+#if !defined(_KERNEL) || defined(_WANT_SHM_PROTOTYPES)
#include <sys/cdefs.h>
#ifndef _SIZE_T_DECLARED
@@ -163,6 +164,6 @@ int shmctl(int, int, struct shmid_ds *);
int shmdt(const void *);
__END_DECLS
-#endif /* !_KERNEL */
+#endif /* _KERNEL || _WANT_SHM_PROTOTYPES */
#endif /* !_SYS_SHM_H_ */
OpenPOWER on IntegriCloud