svn commit: r328294 - in stable: 10/sys/sys 11/sys/sys

John Baldwin jhb at FreeBSD.org
Tue Jan 23 18:22:43 UTC 2018


Author: jhb
Date: Tue Jan 23 18:22:41 2018
New Revision: 328294
URL: https://svnweb.freebsd.org/changeset/base/328294

Log:
  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

Modified:
  stable/11/sys/sys/aio.h
  stable/11/sys/sys/shm.h
Directory Properties:
  stable/11/   (props changed)

Changes in other areas also in this revision:
Modified:
  stable/10/sys/sys/aio.h
  stable/10/sys/sys/shm.h
Directory Properties:
  stable/10/   (props changed)

Modified: stable/11/sys/sys/aio.h
==============================================================================
--- stable/11/sys/sys/aio.h	Tue Jan 23 18:03:13 2018	(r328293)
+++ stable/11/sys/sys/aio.h	Tue Jan 23 18:22:41 2018	(r328294)
@@ -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: stable/11/sys/sys/shm.h
==============================================================================
--- stable/11/sys/sys/shm.h	Tue Jan 23 18:03:13 2018	(r328293)
+++ stable/11/sys/sys/shm.h	Tue Jan 23 18:22:41 2018	(r328294)
@@ -157,7 +157,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-all mailing list