aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2012-07-29 01:37:15 +0200
committerKim Alvefur <zash@zash.se>2012-07-29 01:37:15 +0200
commit53627a3105a044c0c97fa4753d20208084b9df8b (patch)
treeb2e2beba649094dc3e716635d8b54d2677c9d939 /configure
parent19e227ab192a23c7392c0a076b31956ff821bdab (diff)
downloadprosody-im-server-53627a3105a044c0c97fa4753d20208084b9df8b.tar
prosody-im-server-53627a3105a044c0c97fa4753d20208084b9df8b.zip
configure: Add _GNU_SOURCE flag to linux and debian presets to enable Linux fallocate()
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 2 insertions, 0 deletions
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" ]