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
This commit is contained in:
John Baldwin 2018-01-23 18:22:41 +00:00
parent 56a799b7a1
commit 1963363577
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/stable/10/; revision=328294
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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);