configure: Add _GNU_SOURCE flag to linux and debian presets to enable Linux fallocate()
authorKim Alvefur <zash@zash.se>
Sun, 29 Jul 2012 01:37:15 +0200
changeset 5048 e02161ba20e0
parent 5045 4ba6940deed0
child 5049 5d685f123332
configure: Add _GNU_SOURCE flag to linux and debian presets to enable Linux fallocate()
configure
--- a/configure	Sat Jul 28 22:37:24 2012 +0200
+++ b/configure	Sun Jul 29 01:37:15 2012 +0200
@@ -96,6 +96,7 @@
 	LUA_SUFFIX_SET=yes
 	LUA_INCDIR=/usr/include/lua5.1;
 	LUA_INCDIR_SET=yes
+	CFLAGS="$CFLAGS -D_GNU_SOURCE"
 	fi
 	if [ "$OSTYPE" = "macosx" ]
 	then LUA_INCDIR=/usr/local/include;
@@ -110,6 +111,7 @@
         LUA_LIBDIR=/usr/local/lib
         LUA_LIBDIR_SET=yes
         CFLAGS="-Wall -fPIC"
+        CFLAGS="$CFLAGS -D_GNU_SOURCE"
         LDFLAGS="-shared"
         fi
         if [ "$OSTYPE" = "freebsd" -o "$OSTYPE" = "openbsd" ]