diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-05-22 15:00:49 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-05-22 18:17:20 +0200 |
commit | d6ec84207d14aea77d5773b1db6278ce9f72702e (patch) | |
tree | ee2000f245c313143155d9349de6977a7861b8cc /package/dosfstools/patches | |
parent | dcb585a900e04b71974fa82bf2170eb3f810b9b5 (diff) |
fix filesystem check with devices bigger than 2 GB
Diffstat (limited to 'package/dosfstools/patches')
-rw-r--r-- | package/dosfstools/patches/patch-Makefile | 4 | ||||
-rw-r--r-- | package/dosfstools/patches/patch-src_boot_c | 4 | ||||
-rw-r--r-- | package/dosfstools/patches/patch-src_io_c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/package/dosfstools/patches/patch-Makefile b/package/dosfstools/patches/patch-Makefile index 984244502..328882ec4 100644 --- a/package/dosfstools/patches/patch-Makefile +++ b/package/dosfstools/patches/patch-Makefile @@ -1,12 +1,12 @@ --- dosfstools-3.0.26.orig/Makefile 2014-01-17 07:09:28.000000000 +0100 -+++ dosfstools-3.0.26/Makefile 2014-05-05 13:38:09.000000000 +0200 ++++ dosfstools-3.0.26/Makefile 2014-05-22 13:55:10.763081049 +0200 @@ -32,7 +32,9 @@ OPTFLAGS = -O2 -fomit-frame-pointer -D_G #WARNFLAGS = -Wall -pedantic -std=c99 WARNFLAGS = -Wall -Wextra -Wno-sign-compare -Wno-missing-field-initializers -Wmissing-prototypes -Wstrict-prototypes DEBUGFLAGS = -g -CFLAGS += $(OPTFLAGS) $(WARNFLAGS) $(DEBUGFLAGS) +CFLAGS ?= -+CFLAGS += $(WARNFLAGS) ++CFLAGS += $(WARNFLAGS) -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 +LDLIBS = -liconv VPATH = src diff --git a/package/dosfstools/patches/patch-src_boot_c b/package/dosfstools/patches/patch-src_boot_c index ac5a155e4..4fe35c509 100644 --- a/package/dosfstools/patches/patch-src_boot_c +++ b/package/dosfstools/patches/patch-src_boot_c @@ -1,5 +1,5 @@ --- dosfstools-3.0.26.orig/src/boot.c 2014-01-17 07:06:54.000000000 +0100 -+++ dosfstools-3.0.26/src/boot.c 2014-05-05 13:34:45.000000000 +0200 ++++ dosfstools-3.0.26/src/boot.c 2014-05-17 08:59:02.419708114 +0200 @@ -155,7 +155,7 @@ static void check_backup_boot(DOS_FS * f fs->backupboot_start = bbs * lss; b->backup_boot = htole16(bbs); @@ -66,7 +66,7 @@ int i; if (fs->root_cluster) { -@@ -525,7 +525,7 @@ static void write_volume_label(DOS_FS * +@@ -525,7 +525,7 @@ static void write_volume_label(DOS_FS * { time_t now = time(NULL); struct tm *mtime = localtime(&now); diff --git a/package/dosfstools/patches/patch-src_io_c b/package/dosfstools/patches/patch-src_io_c index f8cd34142..f95e07fc0 100644 --- a/package/dosfstools/patches/patch-src_io_c +++ b/package/dosfstools/patches/patch-src_io_c @@ -1,5 +1,5 @@ --- dosfstools-3.0.26.orig/src/io.c 2014-01-17 07:07:14.000000000 +0100 -+++ dosfstools-3.0.26/src/io.c 2014-05-05 13:34:45.000000000 +0200 ++++ dosfstools-3.0.26/src/io.c 2014-05-17 08:59:02.559708625 +0200 @@ -48,7 +48,7 @@ typedef struct _change { @@ -39,7 +39,7 @@ { CHANGE *walk; int got; -@@ -145,7 +145,7 @@ void fs_read(loff_t pos, int size, void +@@ -145,7 +145,7 @@ void fs_read(loff_t pos, int size, void } } |