summaryrefslogtreecommitdiff
path: root/package/cramfs/cramfs-03-cygwin_IO.patch
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2010-04-09 16:16:44 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2010-04-09 16:16:44 +0200
commit6bb35a38c244b20bbd6e85fd16f69ff2c4f0ed72 (patch)
tree432513fc67dcff844ecf5c48f38bdcf1a9fe3523 /package/cramfs/cramfs-03-cygwin_IO.patch
parentb6ebab842dbb0581526f907bf5b39cad0ac1f756 (diff)
parent0b79c5022d32b15180a18087a0fba5a2f1af5cc7 (diff)
Merge branch 'fs-cleanup' of git://git.busybox.net/~tpetazzoni/git/buildroot
Diffstat (limited to 'package/cramfs/cramfs-03-cygwin_IO.patch')
-rw-r--r--package/cramfs/cramfs-03-cygwin_IO.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/package/cramfs/cramfs-03-cygwin_IO.patch b/package/cramfs/cramfs-03-cygwin_IO.patch
new file mode 100644
index 000000000..4ea358ede
--- /dev/null
+++ b/package/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 */