Date: Tue, 14 Nov 2017 23:50:30 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r325835 - head/sys/sys Message-ID: <201711142350.vAENoUig022101@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jhb Date: Tue Nov 14 23:50:30 2017 New Revision: 325835 URL: https://svnweb.freebsd.org/changeset/base/325835 Log: 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 Modified: head/sys/sys/aio.h head/sys/sys/shm.h Modified: head/sys/sys/aio.h ============================================================================== --- head/sys/sys/aio.h Tue Nov 14 23:02:19 2017 (r325834) +++ head/sys/sys/aio.h Tue Nov 14 23:50:30 2017 (r325835) @@ -252,7 +252,7 @@ int aio_suspend(const struct aiocb * const[], int, con */ int aio_mlock(struct aiocb *); -#ifdef __BSD_VISIBLE +#if __BSD_VISIBLE ssize_t aio_waitcomplete(struct aiocb **, struct timespec *); #endif Modified: head/sys/sys/shm.h ============================================================================== --- head/sys/sys/shm.h Tue Nov 14 23:02:19 2017 (r325834) +++ head/sys/sys/shm.h Tue Nov 14 23:50:30 2017 (r325835) @@ -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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711142350.vAENoUig022101>