Skip to content

Commit

Permalink
Replace _OPENBSD_SOURCE with _BSD_SOURCE since some 3rd party code
Browse files Browse the repository at this point in the history
already uses the latter, which is helpful for ports.
The headers don't actually use _OPENBSD_SOURCE yet so this is safe to do.
  • Loading branch information
millert committed Nov 19, 2005
1 parent 7f4b41d commit 431045e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions sys/sys/cdefs.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $OpenBSD: cdefs.h,v 1.19 2005/11/15 15:46:41 millert Exp $ */
/* $OpenBSD: cdefs.h,v 1.20 2005/11/19 19:05:02 millert Exp $ */
/* $NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $ */

/*
Expand Down Expand Up @@ -196,7 +196,7 @@
* __POSIX_VISIBLE
* __XPG_VISIBLE
* __ISO_C_VISIBLE
* __OPENBSD_VISIBLE
* __BSD_VISIBLE
*/

/*
Expand Down Expand Up @@ -292,11 +292,11 @@
/*
* Finally deal with BSD-specific interfaces that are not covered
* by any standards. We expose these when one of the POSIX or XPG
* macros is not defined or if the user explicitly asks for them.
* macros is defined or if the user explicitly asks for them.
*/
#if !defined(_OPENBSD_SOURCE) && \
#if !defined(_BSD_SOURCE) && \
(defined(_ANSI_SOURCE) || defined(__XPG_VISIBLE) || defined(__POSIX_VISIBLE))
# define __OPENBSD_VISIBLE 0
# define __BSD_VISIBLE 0
#endif

/*
Expand All @@ -311,8 +311,8 @@
#ifndef __ISO_C_VISIBLE
# define __ISO_C_VISIBLE 1999
#endif
#ifndef __OPENBSD_VISIBLE
# define __OPENBSD_VISIBLE 1
#ifndef __BSD_VISIBLE
# define __BSD_VISIBLE 1
#endif

#endif /* !_CDEFS_H_ */

0 comments on commit 431045e

Please sign in to comment.