aboutsummaryrefslogtreecommitdiff
path: root/sys/sys
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2017-11-14 23:50:30 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2017-11-14 23:50:30 +0000
commitb8db1c9fe0c55acdbad6ac72d62c2a789fbbe70e (patch)
treeb09b7e03322408c15689c329370ea0b8834836fb /sys/sys
parentca987d4641cdcd7f27e153db17c5bf064934faf5 (diff)
downloadsrc-b8db1c9fe0c55acdbad6ac72d62c2a789fbbe70e.tar.gz
src-b8db1c9fe0c55acdbad6ac72d62c2a789fbbe70e.zip
Use #if instead of #ifdef for __BSD_VISIBLE tests.
__BSD_VISIBLE is always defined and it's value instead needs to be tested via #if to determine if FreeBSD-specific APIs should be exposed. PR: 196226, 223481 (exp-run) Submitted by: pluknet MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D12977
Notes
Notes: svn path=/head/; revision=325835
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/aio.h2
-rw-r--r--sys/sys/shm.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/aio.h b/sys/sys/aio.h
index 16a7aecbc956..520254eaf0b0 100644
--- a/sys/sys/aio.h
+++ b/sys/sys/aio.h
@@ -252,7 +252,7 @@ int aio_suspend(const struct aiocb * const[], int, const struct timespec *);
*/
int aio_mlock(struct aiocb *);
-#ifdef __BSD_VISIBLE
+#if __BSD_VISIBLE
ssize_t aio_waitcomplete(struct aiocb **, struct timespec *);
#endif
diff --git a/sys/sys/shm.h b/sys/sys/shm.h
index 218be51a397a..8a2490c69686 100644
--- a/sys/sys/shm.h
+++ b/sys/sys/shm.h
@@ -159,7 +159,7 @@ typedef __size_t size_t;
#endif
__BEGIN_DECLS
-#ifdef __BSD_VISIBLE
+#if __BSD_VISIBLE
int shmsys(int, ...);
#endif
void *shmat(int, const void *, int);