Skip to content

Commit

Permalink
Use #if instead of #ifdef for __BSD_VISIBLE tests.
Browse files Browse the repository at this point in the history
__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
  • Loading branch information
bsdjhb committed Nov 14, 2017
1 parent ca987d4 commit b8db1c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sys/sys/aio.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion sys/sys/shm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b8db1c9

Please sign in to comment.