aboutsummaryrefslogtreecommitdiffstats
path: root/util-src/pposix.c
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-03-07 22:44:12 +0100
committerKim Alvefur <zash@zash.se>2017-03-07 22:44:12 +0100
commit83dce276409b1cdf2c5475dd06956cf50ee1ce6a (patch)
treeaecd89ed33910dfc20d71cdcdece8d1c72673efa /util-src/pposix.c
parent12a94eee9180b0aa9d885bfe35b1cab651726511 (diff)
parent014ceb2aa3d35b3b90e3d95d9a9256af09456503 (diff)
downloadprosody-83dce276409b1cdf2c5475dd06956cf50ee1ce6a.tar.gz
prosody-83dce276409b1cdf2c5475dd06956cf50ee1ce6a.zip
Merge 0.10->trunk
Diffstat (limited to 'util-src/pposix.c')
-rw-r--r--util-src/pposix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util-src/pposix.c b/util-src/pposix.c
index f9c07e54..c0cced5c 100644
--- a/util-src/pposix.c
+++ b/util-src/pposix.c
@@ -52,7 +52,7 @@
#include <linux/falloc.h>
#endif
-#if !defined(WITHOUT_MALLINFO)
+#if !defined(WITHOUT_MALLINFO) && defined(__linux__)
#include <malloc.h>
#define WITH_MALLINFO
#endif
@@ -542,7 +542,7 @@ int string2resource(const char *s) {
return -1;
}
-unsigned long int arg_to_rlimit(lua_State *L, int idx, rlim_t current) {
+rlim_t arg_to_rlimit(lua_State *L, int idx, rlim_t current) {
switch(lua_type(L, idx)) {
case LUA_TSTRING: