summaryrefslogtreecommitdiff
path: root/net-mgmt/nagios4/files/patch-lib_runcmd.c
blob: 9ed448ec265a4e61de929b248b10c866c1787cd9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- lib/runcmd.c.orig	2016-08-01 15:46:23 UTC
+++ lib/runcmd.c
@@ -36,7 +36,7 @@
 #endif
 
 /* Determine whether we have setenv()/unsetenv() (see setenv(3) on Linux) */
-#if _BSD_SOURCE || _POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600
+#if defined(__DragonFly__) || __FreeBSD__ || _POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600
 # define HAVE_SETENV
 #endif