net-mgmt/nagios4: Unbreak on DF (no-op for FreeBSD)

This commit is contained in:
John Marino 2014-10-01 09:42:39 +00:00
parent 03fa8e3a2a
commit 20d2c4c68f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=369709
2 changed files with 12 additions and 1 deletions

View file

@ -0,0 +1,11 @@
--- configure.orig 2014-08-12 15:00:01 UTC
+++ configure
@@ -7766,7 +7766,7 @@ $as_echo_n "checking for linker flags fo
MOD_LDFLAGS="-shared"
MOD_CFLAGS="-fPIC"
;;
- freebsd*)
+ dragonfly*|freebsd*)
MOD_LDFLAGS="-shared"
MOD_CFLAGS="-fPIC"
;;

View file

@ -5,7 +5,7 @@
/* Determine whether we have setenv()/unsetenv() (see setenv(3) on Linux) */
-#if _BSD_SOURCE || _POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600
+#if __FreeBSD__ || _POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600
+#if defined(__DragonFly__) || __FreeBSD__ || _POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600
# define HAVE_SETENV
#endif