diff options
author | Matthew Wild <mwild1@gmail.com> | 2013-09-03 00:20:28 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2013-09-03 00:20:28 +0100 |
commit | 8eb7b73968209de2031d534abad17045f956a35e (patch) | |
tree | 830cfa780955b317d2dcfed69ec03eef9580d00b /util-src/pposix.c | |
parent | acf2cd9d36489efca06af796f2ba0d084f4dfe1b (diff) | |
parent | cb7584022716f4407b4460754645e6af587e4730 (diff) | |
download | prosody-8eb7b73968209de2031d534abad17045f956a35e.tar.gz prosody-8eb7b73968209de2031d534abad17045f956a35e.zip |
Merge 0.9->trunk
Diffstat (limited to 'util-src/pposix.c')
-rw-r--r-- | util-src/pposix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util-src/pposix.c b/util-src/pposix.c index 2e1de971..8ad167b7 100644 --- a/util-src/pposix.c +++ b/util-src/pposix.c @@ -36,7 +36,7 @@ #include "lauxlib.h" #include <fcntl.h> -#if defined(_GNU_SOURCE) +#if defined(__linux__) && defined(_GNU_SOURCE) #include <linux/falloc.h> #endif @@ -680,7 +680,7 @@ int lc_fallocate(lua_State* L) offset = luaL_checkinteger(L, 2); len = luaL_checkinteger(L, 3); -#if defined(_GNU_SOURCE) +#if defined(__linux__) && defined(_GNU_SOURCE) if(fallocate(fileno(f), FALLOC_FL_KEEP_SIZE, offset, len) == 0) { lua_pushboolean(L, 1); |