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 1336039..c00c7c1 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,