freebsd-ports/devel/ccache/files/patch-configure
Bryan Drewery 8747fba8d2 - Fix defining of strndup(3) prototype due to improperly defined
_POSIX_C_SOURCE and _XOPEN_SOURCE.  strndup(3) came in POSIX.1-2008.
2015-10-27 18:31:02 +00:00

20 lines
425 B
Text

--- configure.orig 2015-10-08 12:14:23.000000000 -0700
+++ configure 2015-10-27 10:49:04.338642000 -0700
@@ -3672,7 +3672,7 @@
;;
*)
-$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
+$as_echo "#define _XOPEN_SOURCE 700" >>confdefs.h
;;
esac
@@ -3694,7 +3694,7 @@
esac
-$as_echo "#define _POSIX_C_SOURCE 200112L" >>confdefs.h
+$as_echo "#define _POSIX_C_SOURCE 200809L" >>confdefs.h
fi