diff options
author | Raphael Kubo da Costa <rakuco@FreeBSD.org> | 2015-12-27 01:24:34 +0100 |
---|---|---|
committer | Raphael Kubo da Costa <rakuco@FreeBSD.org> | 2016-01-03 13:42:13 +0000 |
commit | 090bf50771ec1e5d089b0ae0488059a5643883b2 (patch) | |
tree | 3f7c7bf242d78404e3509c19e4a876e1ac143868 | |
parent | forkfd: Also define BSD visibility macros in forkfd_qt.cpp. (diff) | |
download | qtbase-090bf50771ec1e5d089b0ae0488059a5643883b2.tar.xz qtbase-090bf50771ec1e5d089b0ae0488059a5643883b2.zip |
forkfd: Only enable pipe2 on FreeBSD >= 10.0.
The system call is not present on earlier releases, and since the 9.x
series will be supported until the end of 2016, add a check for the
__FreeBSD_version macro and only enable pipe2 support if the value is
high enough.
Change-Id: I5633531cec7e95d42ff5f4b14afe772ae8d7d66d
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
-rw-r--r-- | src/3rdparty/forkfd/forkfd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/3rdparty/forkfd/forkfd.c b/src/3rdparty/forkfd/forkfd.c index 099a0ff574..cff717fe0c 100644 --- a/src/3rdparty/forkfd/forkfd.c +++ b/src/3rdparty/forkfd/forkfd.c @@ -64,7 +64,7 @@ # undef HAVE_WAITID #endif -#if defined(__FreeBSD__) +#if defined(__FreeBSD__) && defined(__FreeBSD_version) && __FreeBSD_version >= 1000032 # define HAVE_PIPE2 1 #endif |