projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19e227a
)
configure: Add _GNU_SOURCE flag to linux and debian presets to enable Linux fallocate()
author
Kim Alvefur
<zash@zash.se>
Sat, 28 Jul 2012 23:37:15 +0000
(
01:37
+0200)
committer
Kim Alvefur
<zash@zash.se>
Sat, 28 Jul 2012 23:37:15 +0000
(
01:37
+0200)
configure
patch
|
blob
|
history
diff --git
a/configure
b/configure
index dd6af49c35f70777fab532bbe98ea3148a7bb63b..209fdccb310465da4eb353b8804af2ed339c6aa7 100755
(executable)
--- 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" ]