mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 19:08:58 +00:00
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:
parent
56a799b7a1
commit
1963363577
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/stable/10/; revision=328294
@ -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
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user