]> git.pld-linux.org Git - packages/cksfv.git/blame - cksfv-LFS.patch
- release 3
[packages/cksfv.git] / cksfv-LFS.patch
CommitLineData
31751cd2
JR
1diff -ur cksfv-1.3.orig/src/Makefile cksfv-1.3/src/Makefile
2--- cksfv-1.3.orig/src/Makefile 2001-07-06 08:33:08.000000000 +0200
3+++ cksfv-1.3/src/Makefile 2004-02-04 23:22:15.000000000 +0100
4@@ -17,7 +17,7 @@
5 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
6
7 PROG= cksfv
8-CFLAGS+= -Wall -Werror -O2 -g
9+CFLAGS+= -Wall -Werror -O2 -g -D_LARGEFILE64_SOURCE
10 SRCS= cksfv.c print.c crc32.c readsfv.c newsfv.c
11
12 cksfv: $(SRCS)
13diff -ur cksfv-1.3.orig/src/newsfv.c cksfv-1.3/src/newsfv.c
14--- cksfv-1.3.orig/src/newsfv.c 2004-02-04 23:14:26.000000000 +0100
15+++ cksfv-1.3/src/newsfv.c 2004-02-04 23:22:38.000000000 +0100
16@@ -47,7 +47,7 @@
17
18 while (*argv) {
19 fn = *argv++;
20- if ((fd = open(fn, O_RDONLY, 0)) < 0) {
21+ if ((fd = open(fn, O_RDONLY|O_LARGEFILE, 0)) < 0) {
22 fprintf(stderr, "cksfv: %s: %s\n", fn, strerror(errno));
23 rval = 1;
24 continue;
25diff -ur cksfv-1.3.orig/src/readsfv.c cksfv-1.3/src/readsfv.c
26--- cksfv-1.3.orig/src/readsfv.c 2004-02-04 23:14:26.000000000 +0100
27+++ cksfv-1.3/src/readsfv.c 2004-02-04 23:22:53.000000000 +0100
28@@ -87,11 +87,11 @@
29 snprintf(path, 256, "%s/%s", dir, filename);
30
31 /* can we open the file */
32- if ((file = open(filename, O_RDONLY, 0)) < 0) {
33+ if ((file = open(filename, O_RDONLY|O_LARGEFILE, 0)) < 0) {
34 if (nocase == 1) {
35 /* try to search for it if ingore case is set */
36 find_file(filename, dir);
37- file = open(filename, O_RDONLY, 0);
38+ file = open(filename, O_RDONLY|O_LARGEFILE, 0);
39 }
40 }
41
This page took 0.02364 seconds and 4 git commands to generate.