summaryrefslogtreecommitdiff
path: root/sysutils/cramfs/files/patch-cramfsck.c
diff options
context:
space:
mode:
authorCheng-Lung Sung <clsung@FreeBSD.org>2006-12-07 09:36:45 +0000
committerCheng-Lung Sung <clsung@FreeBSD.org>2006-12-07 09:36:45 +0000
commit541a339c46eabe79052435427385b15edc931df7 (patch)
tree6283a080ef19f313836cc3b5d26697485fbec97c /sysutils/cramfs/files/patch-cramfsck.c
parentUpdate to 0.7.7 release. (diff)
Add cramfs 1.1, the compressed ROM filesystem.
PR: ports/105993 Submitted by: Gea-Suan Lin <gslin at gslin.org>
Notes
Notes: svn path=/head/; revision=179097
Diffstat (limited to 'sysutils/cramfs/files/patch-cramfsck.c')
-rw-r--r--sysutils/cramfs/files/patch-cramfsck.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/sysutils/cramfs/files/patch-cramfsck.c b/sysutils/cramfs/files/patch-cramfsck.c
new file mode 100644
index 000000000000..cfd6aca01c5f
--- /dev/null
+++ b/sysutils/cramfs/files/patch-cramfsck.c
@@ -0,0 +1,19 @@
+--- 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 */