From 56ac0ec65614270d6367100296cf115a53dd7595 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 29 Jul 2012 01:37:15 +0200 Subject: configure: Add _GNU_SOURCE flag to linux and debian presets to enable Linux fallocate() --- configure | 2 ++ 1 file changed, 2 insertions(+) (limited to 'configure') diff --git a/configure b/configure index dd6af49c..209fdccb 100755 --- a/configure +++ b/configure @@ -96,6 +96,7 @@ do 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 @@ do 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" ] -- cgit v1.2.3