fix build failure when targetting ramdisk
authorFlorian Fainelli <florian@openwrt.org>
Sun, 7 Nov 2010 15:41:52 +0000 (15:41 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Sun, 7 Nov 2010 15:41:52 +0000 (15:41 +0000)
SVN-Revision: 23914

target/linux/uml/patches-2.6.32/007-uml_missing_stat_h.patch [new file with mode: 0644]

diff --git a/target/linux/uml/patches-2.6.32/007-uml_missing_stat_h.patch b/target/linux/uml/patches-2.6.32/007-uml_missing_stat_h.patch
new file mode 100644 (file)
index 0000000..bddd23c
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/arch/um/os-Linux/mem.c
++++ b/arch/um/os-Linux/mem.c
+@@ -10,6 +10,7 @@
+ #include <errno.h>
+ #include <fcntl.h>
+ #include <string.h>
++#include <sys/stat.h>
+ #include <sys/mman.h>
+ #include <sys/param.h>
+ #include "init.h"