Skip to content

Commit

Permalink
Merge pull request facebook#3952 from felixhandte/stop-hardcoding-pos…
Browse files Browse the repository at this point in the history
…ix-version-on-bsd

Stop Hardcoding the POSIX Version on BSDs
  • Loading branch information
felixhandte committed Mar 12, 2024
2 parents db996d2 + f99a450 commit a6ff119
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions programs/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ extern "C" {
***************************************************************/
#ifndef PLATFORM_POSIX_VERSION

# if (defined(__APPLE__) && defined(__MACH__)) || defined(__SVR4) || defined(_AIX) || defined(__hpux) /* POSIX.1-2001 (SUSv3) conformant */ \
|| defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) /* BSD distros */
# if (defined(__APPLE__) && defined(__MACH__)) || defined(__SVR4) || defined(_AIX) || defined(__hpux) /* POSIX.1-2001 (SUSv3) conformant */
/* exception rule : force posix version to 200112L,
* note: it's better to use unistd.h's _POSIX_VERSION whenever possible */
# define PLATFORM_POSIX_VERSION 200112L
Expand Down

0 comments on commit a6ff119

Please sign in to comment.