svn commit: r325835 - head/sys/sys

John Baldwin jhb at FreeBSD.org
Tue Nov 14 23:50:32 UTC 2017


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


More information about the svn-src-head mailing list