mirror of
https://github.com/facebook/zstd.git
synced 2025-07-29 11:21:22 +03:00
Merge pull request #3952 from felixhandte/stop-hardcoding-posix-version-on-bsd
Stop Hardcoding the POSIX Version on BSDs
This commit is contained in:
@ -74,8 +74,7 @@ extern "C" {
|
|||||||
***************************************************************/
|
***************************************************************/
|
||||||
#ifndef PLATFORM_POSIX_VERSION
|
#ifndef PLATFORM_POSIX_VERSION
|
||||||
|
|
||||||
# if (defined(__APPLE__) && defined(__MACH__)) || defined(__SVR4) || defined(_AIX) || defined(__hpux) /* POSIX.1-2001 (SUSv3) conformant */ \
|
# 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 */
|
|
||||||
/* exception rule : force posix version to 200112L,
|
/* exception rule : force posix version to 200112L,
|
||||||
* note: it's better to use unistd.h's _POSIX_VERSION whenever possible */
|
* note: it's better to use unistd.h's _POSIX_VERSION whenever possible */
|
||||||
# define PLATFORM_POSIX_VERSION 200112L
|
# define PLATFORM_POSIX_VERSION 200112L
|
||||||
|
Reference in New Issue
Block a user