[tools] squashfs4: fix compilation on FreeBSD
[openwrt/svn-archive/archive.git] / tools / squashfs4 / patches / 150-freebsd_fixes.patch
diff --git a/tools/squashfs4/patches/150-freebsd_fixes.patch b/tools/squashfs4/patches/150-freebsd_fixes.patch
new file mode 100644 (file)
index 0000000..344d9ec
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/squashfs-tools/pseudo.c
++++ b/squashfs-tools/pseudo.c
+@@ -31,6 +31,7 @@
+ #include <stdlib.h>
+ #include <sys/types.h>
+ #include <sys/wait.h>
++#include <sys/stat.h>
+ #include "pseudo.h"