The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / cramfs / 0002-cygwin_IO.patch
diff --git a/cirros-testvm/src-cirros/buildroot-2015.05/package/cramfs/0002-cygwin_IO.patch b/cirros-testvm/src-cirros/buildroot-2015.05/package/cramfs/0002-cygwin_IO.patch
new file mode 100644 (file)
index 0000000..8be333f
--- /dev/null
@@ -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 */