Software /
code /
prosody
Diff
configure @ 5048:e02161ba20e0
configure: Add _GNU_SOURCE flag to linux and debian presets to enable Linux fallocate()
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 29 Jul 2012 01:37:15 +0200 |
parent | 4451:70275ab52ab2 |
child | 5145:53f741a5a73a |
line wrap: on
line diff
--- 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" ]