diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sqfs/write_inode.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/sqfs/write_inode.c b/lib/sqfs/write_inode.c index 86ed146..787c4b5 100644 --- a/lib/sqfs/write_inode.c +++ b/lib/sqfs/write_inode.c @@ -14,7 +14,15 @@ #include "compat.h" #include <string.h> -#include <alloca.h> + +#if defined(_WIN32) || defined(__WINDOWS__) +# include <malloc.h> +# ifdef _MSC_VER +# define alloca _alloca +# endif +#else +# include <alloca.h> +#endif static int write_block_sizes(sqfs_meta_writer_t *ir, const sqfs_inode_generic_t *n) |