summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/sqfs/write_inode.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sqfs/write_inode.c b/lib/sqfs/write_inode.c
index 787c4b5..8d8fa7a 100644
--- a/lib/sqfs/write_inode.c
+++ b/lib/sqfs/write_inode.c
@@ -14,13 +14,14 @@
#include "compat.h"
#include <string.h>
+#include <stdlib.h>
#if defined(_WIN32) || defined(__WINDOWS__)
# include <malloc.h>
# ifdef _MSC_VER
# define alloca _alloca
# endif
-#else
+#elif defined(HAVE_ALLOCA_H)
# include <alloca.h>
#endif