]> wimlib.net Git - wimlib/commitdiff
reparse.c: Include <stdlib.h> for alloca
authorEric Biggers <ebiggers3@gmail.com>
Tue, 14 May 2013 01:43:17 +0000 (20:43 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Tue, 14 May 2013 01:43:17 +0000 (20:43 -0500)
src/reparse.c

index 133603976f1bfc53d59e6b0e5bc0682f7ca49984..c00c7c1c16906a6d95acc71ff9c989cc9f13e9ba 100644 (file)
 #include "lookup_table.h"
 #include "sha1.h"
 #include <errno.h>
 #include "lookup_table.h"
 #include "sha1.h"
 #include <errno.h>
+#include <stdlib.h>
+#ifdef HAVE_ALLOCA_H
+#  include <alloca.h>
+#endif
 
 static const utf16lechar volume_junction_prefix[11] = {
        cpu_to_le16('\\'),
 
 static const utf16lechar volume_junction_prefix[11] = {
        cpu_to_le16('\\'),
@@ -315,10 +319,6 @@ out_have_link:
        return ret;
 }
 
        return ret;
 }
 
-#ifdef HAVE_ALLOCA_H
-#  include <alloca.h>
-#endif
-
 int
 wim_inode_set_symlink(struct wim_inode *inode,
                      const char *target,
 int
 wim_inode_set_symlink(struct wim_inode *inode,
                      const char *target,