Skip to contentSkip to conversation

package/cramfs: fix missing type

PATCH New Yann E. MORIN 2 participants 2 messages Aug 5, 2015 – Aug 6, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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... :-(

---
 package/cramfs/0003-fix-missing-types.patch | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 package/cramfs/0003-fix-missing-types.patch
package/cramfs/0003-fix-missing-types.patch new file +17 -0
new file mode 100644
index 0000000..8961100
@@ -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" <[email protected]>
+
+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>
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 package/cramfs: fix missing type

Dear Yann E. MORIN,

Quoted 8 lines · Yann E. MORIN

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/
    [...]
Quoted 8 lines

Note: since cramfs was last released in 2002-02-24, we don't stand a chance to get this merged any time soon... :-(

---
 package/cramfs/0003-fix-missing-types.patch | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 package/cramfs/0003-fix-missing-types.patch

Applied, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com