summaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer2006-12-22 13:22:15 +0100
committerBernhard Reutner-Fischer2006-12-22 13:22:15 +0100
commit684e3477bb15c39f8d54e9c8d768c6d84dbe5ba5 (patch)
treed0c767f9831e039aa3c999a9cb13c621a43f344c /target
parent- add some more useful hints (diff)
downloadbuildroot-684e3477bb15c39f8d54e9c8d768c6d84dbe5ba5.tar.gz
buildroot-684e3477bb15c39f8d54e9c8d768c6d84dbe5ba5.tar.xz
buildroot-684e3477bb15c39f8d54e9c8d768c6d84dbe5ba5.zip
- patch from AndyI to make it behave on Cygwin. Closes #1127. Thanks!
Diffstat (limited to 'target')
-rw-r--r--target/cramfs/cramfs-03-cygwin_IO.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/target/cramfs/cramfs-03-cygwin_IO.patch b/target/cramfs/cramfs-03-cygwin_IO.patch
new file mode 100644
index 000000000..4ea358ede
--- /dev/null
+++ b/target/cramfs/cramfs-03-cygwin_IO.patch
@@ -0,0 +1,13 @@
+--- cramfs-1.1/cramfsck.c.orig 2006-12-22 22:16:59.328125000 +1100
++++ cramfs-1.1/cramfsck.c 2006-12-19 01:02:05.531250000 +1100
+@@ -56,6 +56,10 @@
+ #include "linux/cramfs_fs.h"
+ #include <zlib.h>
+
++#ifdef __CYGWIN__
++#define _IO(type,nr) _IOC(_IOC_NONE,(type),(nr),0)
++#endif /* __CYGWIN__ */
++
+ #define BLKGETSIZE _IO(0x12,96) /* return device size /512 (long *arg) */
+
+ /* Exit codes used by fsck-type programs */