Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Jan 2018 18:22:41 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r328294 - in stable: 10/sys/sys 11/sys/sys
Message-ID:  <201801231822.w0NIMfcN093001@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801231822.w0NIMfcN093001>