diff options
Diffstat (limited to 'filesystems/cramfs/files')
-rw-r--r-- | filesystems/cramfs/files/patch-GNUmakefile | 10 | ||||
-rw-r--r-- | filesystems/cramfs/files/patch-cramfsck.c | 39 | ||||
-rw-r--r-- | filesystems/cramfs/files/patch-mkcramfs.c | 12 |
3 files changed, 61 insertions, 0 deletions
diff --git a/filesystems/cramfs/files/patch-GNUmakefile b/filesystems/cramfs/files/patch-GNUmakefile new file mode 100644 index 000000000000..39ee95d61ca9 --- /dev/null +++ b/filesystems/cramfs/files/patch-GNUmakefile @@ -0,0 +1,10 @@ +--- GNUmakefile.orig Wed Nov 29 12:51:59 2006 ++++ GNUmakefile Wed Nov 29 12:52:06 2006 +@@ -1,5 +1,5 @@ +-CC = gcc +-CFLAGS = -W -Wall -O2 -g ++CC ?= gcc ++CFLAGS ?= -W -Wall -O2 -g + CPPFLAGS = -I. + LDLIBS = -lz + PROGS = mkcramfs cramfsck diff --git a/filesystems/cramfs/files/patch-cramfsck.c b/filesystems/cramfs/files/patch-cramfsck.c new file mode 100644 index 000000000000..9a685b5565dc --- /dev/null +++ b/filesystems/cramfs/files/patch-cramfsck.c @@ -0,0 +1,39 @@ +--- cramfsck.c.orig Wed Nov 29 12:49:40 2006 ++++ cramfsck.c Wed Nov 29 12:51:12 2006 +@@ -47,13 +47,14 @@ + #include <stdlib.h> + #include <errno.h> + #include <string.h> +-#include <sys/sysmacros.h> + #include <utime.h> + #include <sys/ioctl.h> + #define _LINUX_STRING_H_ +-#include <linux/fs.h> + #include <linux/cramfs_fs.h> + #include <zlib.h> ++ ++#define BLKGETSIZE _IO(0x12,96) ++#define MAP_ANONYMOUS 0x20 + + /* Exit codes used by fsck-type programs */ + #define FSCK_OK 0 /* No errors */ +@@ -603,8 +603,17 @@ + } + + if (opt_extract) { +- if (mknod(path, i->mode, devtype) < 0) { +- die(FSCK_ERROR, 1, "mknod failed: %s", path); ++ switch(type) { ++ default: ++ if (mknod(path, i->mode, devtype) < 0) { ++ die(FSCK_ERROR, 1, "mknod failed: %s", path); ++ } ++ break; ++ case 'p': ++ if (mkfifo(path, i->mode) < 0) { ++ die(FSCK_ERROR, 1, "mkfifo failed: %s", path); ++ } ++ break; + } + change_file_status(path, i); + } diff --git a/filesystems/cramfs/files/patch-mkcramfs.c b/filesystems/cramfs/files/patch-mkcramfs.c new file mode 100644 index 000000000000..5e4f1328f7a5 --- /dev/null +++ b/filesystems/cramfs/files/patch-mkcramfs.c @@ -0,0 +1,12 @@ +--- mkcramfs.c.orig Wed Nov 29 12:47:30 2006 ++++ mkcramfs.c Wed Nov 29 12:49:25 2006 +@@ -36,6 +36,9 @@ + #include <linux/cramfs_fs.h> + #include <zlib.h> + ++#define MAP_ANONYMOUS MAP_ANON ++typedef long long loff_t; ++ + /* Exit codes used by mkfs-type programs */ + #define MKFS_OK 0 /* No errors */ + #define MKFS_ERROR 8 /* Operational error */ |