summaryrefslogtreecommitdiffstats
path: root/src/corelib/io
diff options
context:
space:
mode:
authorRaphael Kubo da Costa <rakuco@FreeBSD.org>2015-12-26 02:30:58 +0100
committerRaphael Kubo da Costa <rakuco@FreeBSD.org>2015-12-27 17:02:23 +0000
commitc8c4ad0c62cacec749b6c42e0a58339446093bba (patch)
tree4a2424a9cbcec17a13bc8fec5e5bb2e9b059240d /src/corelib/io
parent6b6955c2ffdb23c461812ffcda12a2296ef58513 (diff)
forkfd: Define __BSD_VISIBLE and _NETBSD_SOURCE.
pipe2's availability on BSD operating systems depends on the __BSD_VISIBLE macro on FreeBSD and OpenBSD and _NETBSD_SOURCE on NetBSD (DragonFly BSD appears to define it unconditionally). Those two macros are generally set by default, except when _POSIX_C_SOURCE is set. Since we consciously set _POSIX_C_SOURCE but need pipe2, explicitly define the visibility macros. This fixes the -no-pch build on FreeBSD at least. Change-Id: Icc77f6b5d1f9a5bf7bd8048cabbb01f8f89397cc Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/io')
0 files changed, 0 insertions, 0 deletions