aboutsummaryrefslogtreecommitdiff
path: root/package/cramfs/cramfs-03-cygwin_IO.patch
diff options
context:
space:
mode:
authorGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2010-03-02 00:01:08 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2010-04-09 11:03:54 +0200
commitf601bb72db8505def5b3acad13c67d99e2e62a1d (patch)
tree41dac1703f406e2f8be95c07330666c5def32922 /package/cramfs/cramfs-03-cygwin_IO.patch
parent069290f197cfe9659673f9186cf9c2bf452f7f1a (diff)
downloadbuildroot-f601bb72db8505def5b3acad13c67d99e2e62a1d.tar.gz
buildroot-f601bb72db8505def5b3acad13c67d99e2e62a1d.tar.bz2
cramfs: new package
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
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 0000000000..4ea358ede3
--- /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 */