summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xconfigure8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure b/configure
index d230f4c..94545c4 100755
--- a/configure
+++ b/configure
@@ -24,3 +24,11 @@ CFLAGS += $(pkg-config --cflags $libs)
 LDFLAGS += $(pkg-config --libs-only-L $libs)
 LDLIBS = $(pkg-config --libs-only-l $libs)
 EOF
+
+case "$(uname)" in
+	(Linux)
+		if ! grep -q -e '-D_GNU_SOURCE' config.mk; then
+			echo 'CFLAGS += -D_GNU_SOURCE' >> config.mk
+		fi
+		;;
+esac
>Remove initial deflate(3) reference in deflateInit2.3June McEnroe 2018-11-10Remove trailing whitespaceJune McEnroe 2018-11-10Add deflateInit2.3June McEnroe 2018-11-10Refer to deflate(3) for z_streamp typeJune McEnroe 2018-11-10Document z_stream fields in deflate.3June McEnroe 2018-11-10Add inflate.3June McEnroe 2018-11-09Use Pq/Po/Pc moreJune McEnroe 2018-11-09Add FreeBSD MakefileJune McEnroe 2018-11-09Add deflate.3June McEnroe