From 1f8d5e0825e224bd1e2719064e29e4c6986e9a44 Mon Sep 17 00:00:00 2001 From: jhb Date: Tue, 23 Jan 2018 18:22:41 +0000 Subject: [PATCH] MFC 325835: 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 git-svn-id: svn://svn.freebsd.org/base/stable/10@328294 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- sys/sys/aio.h | 2 +- sys/sys/shm.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/sys/aio.h b/sys/sys/aio.h index d6ef6aaf7..35e9b1574 100644 --- a/sys/sys/aio.h +++ b/sys/sys/aio.h @@ -130,7 +130,7 @@ int aio_suspend(const struct aiocb * const[], int, const struct timespec *); */ int aio_mlock(struct aiocb *); -#ifdef __BSD_VISIBLE +#if __BSD_VISIBLE int aio_waitcomplete(struct aiocb **, struct timespec *); #endif diff --git a/sys/sys/shm.h b/sys/sys/shm.h index ed068e7e3..7463a6ace 100644 --- a/sys/sys/shm.h +++ b/sys/sys/shm.h @@ -154,7 +154,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); -- 2.45.0