aboutsummaryrefslogtreecommitdiff
path: root/package/cramfs
diff options
context:
space:
mode:
authorGravatar Yann E. MORIN <yann.morin.1998@free.fr>2015-08-05 22:48:25 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-08-06 08:30:41 +0200
commitbfcffb6f81244c57416de5f80cbad4810528ec42 (patch)
treedad2fea9f54c6898d2cf29f9a2ac9d20f6024075 /package/cramfs
parent712bb469da4966fa03a251f3fe8bdc18a89569ed (diff)
downloadbuildroot-bfcffb6f81244c57416de5f80cbad4810528ec42.tar.gz
buildroot-bfcffb6f81244c57416de5f80cbad4810528ec42.tar.bz2
package/cramfs: fix missing type
loff_t is guarded by _GNU_SOURCE. although already properly defined in cramfsck, it was not defined in mkcramfs. Fixes; http://autobuild.buildroot.org/results/57d/57de9e838fa953e2fb5e358cd535603fb249b7d2/ http://autobuild.buildroot.org/results/e02/e023014934bf291add9d9dfdfc005bfec34dc1ff/ [...] Note: since cramfs was last released in 2002-02-24, we don't stand a chance to get this merged any time soon... :-( Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/cramfs')
-rw-r--r--package/cramfs/0003-fix-missing-types.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/package/cramfs/0003-fix-missing-types.patch b/package/cramfs/0003-fix-missing-types.patch
new file mode 100644
index 0000000000..896110011e
--- /dev/null
+++ b/package/cramfs/0003-fix-missing-types.patch
@@ -0,0 +1,17 @@
+mkcramfs; loff_t is guarded by _GNU_SOURCE
+
+Although already properly done in cramfsck, it was missing in mkcramfs.
+
+Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
+
+diff -durN cramfs-1.1.orig/mkcramfs.c cramfs-1.1/mkcramfs.c
+--- cramfs-1.1.orig/mkcramfs.c 2015-08-05 22:31:16.830543096 +0200
++++ cramfs-1.1/mkcramfs.c 2015-08-05 22:33:33.136289744 +0200
+@@ -22,6 +22,7 @@
+ * If you change the disk format of cramfs, please update fs/cramfs/README.
+ */
+
++#define _GNU_SOURCE
+ #include <sys/types.h>
+ #include <stdio.h>
+ #include <sys/stat.h>