summaryrefslogtreecommitdiff
path: root/package/cramfs/cramfs-02-cygwin_IO.patch
diff options
context:
space:
mode:
authorMaxime Ripard <maxime.ripard@free-electrons.com>2011-09-09 16:05:07 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2011-10-27 15:42:24 +0200
commitccd96a3559324b742f357ce6bd8969c6318fe94b (patch)
treef6d4ebcc3eb73b5a834e0c0194ee3a17e453732b /package/cramfs/cramfs-02-cygwin_IO.patch
parent7f9c4c0aa5dcd2329fc5eb17959f634fd9c9a822 (diff)
Cleanup cramfs package declaration.
Cramfs still passes the device table to mkcramfs, which is irrelevant now with fakeroot, remove this behaviour and the associated patch. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/cramfs/cramfs-02-cygwin_IO.patch')
-rw-r--r--package/cramfs/cramfs-02-cygwin_IO.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/package/cramfs/cramfs-02-cygwin_IO.patch b/package/cramfs/cramfs-02-cygwin_IO.patch
new file mode 100644
index 000000000..8be333f01
--- /dev/null
+++ b/package/cramfs/cramfs-02-cygwin_IO.patch
@@ -0,0 +1,15 @@
+Index: cramfs-1.1/cramfsck.c
+===================================================================
+--- cramfs-1.1.orig/cramfsck.c 2011-09-09 15:10:06.000000000 +0200
++++ cramfs-1.1/cramfsck.c 2011-09-09 15:13:49.950897747 +0200
+@@ -57,6 +57,10 @@
+ #include <byteswap.h>
+ #include <zlib.h>
+
++#ifdef __CYGWIN__
++#define _IO(type,nr) _IOC(_IOC_NONE,(type),(nr),0)
++#endif /* __CYGWIN__ */
++
+ /* Exit codes used by fsck-type programs */
+ #define FSCK_OK 0 /* No errors */
+ #define FSCK_NONDESTRUCT 1 /* File system errors corrected */