summaryrefslogtreecommitdiffstats
path: root/src/3rdparty
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2015-07-10 23:48:16 -0700
committerThiago Macieira <thiago.macieira@intel.com>2015-08-06 04:53:35 +0000
commit007ad9e859711f36fb9c6d3b1d32acb5a3825691 (patch)
treed8d7b9c35e279e16865db6c32fcef5e15a4e218e /src/3rdparty
parent84e1bb49513b9001950ea2b9bd24607a33a4d402 (diff)
FreeBSD has pipe2, so enable it in forkfd.c
Change-Id: Ib056b47dde3341ef9a52ffff13efd1a15748e44d Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
Diffstat (limited to 'src/3rdparty')
-rw-r--r--src/3rdparty/forkfd/forkfd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/3rdparty/forkfd/forkfd.c b/src/3rdparty/forkfd/forkfd.c
index a95d486d9f..a61198a954 100644
--- a/src/3rdparty/forkfd/forkfd.c
+++ b/src/3rdparty/forkfd/forkfd.c
@@ -59,6 +59,10 @@
# define HAVE_WAITID 1
#endif
+#if defined(__FreeBSD__)
+# define HAVE_PIPE2 1
+#endif
+
#if defined(__APPLE__)
/* Up until OS X 10.7, waitid(P_ALL, ...) will return success, but will not
* fill in the details of the dead child. That means waitid is not useful to us.