fixed large file support

Fri, 23 Oct 2015 22:15:12 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Fri, 23 Oct 2015 22:15:12 +0200
changeset 180
5b58389ab9dd
parent 179
802b48ae791d
child 181
a8f8cdbf85df

fixed large file support

dav/main.c file | annotate | diff | comparison | revisions
gcc.mk file | annotate | diff | comparison | revisions
--- a/dav/main.c	Tue Oct 20 11:18:23 2015 +0200
+++ b/dav/main.c	Fri Oct 23 22:15:12 2015 +0200
@@ -829,7 +829,7 @@
     }
     
     dav_set_content(res, in, (dav_read_func)fread);
-    if(len > 0) {
+    if(len > 0 && len < 0x7d000000) {
         dav_set_content_length(res, (size_t)len);
     }
     
--- a/gcc.mk	Tue Oct 20 11:18:23 2015 +0200
+++ b/gcc.mk	Fri Oct 23 22:15:12 2015 +0200
@@ -31,7 +31,7 @@
 AR = ar
 RM = rm
 
-CFLAGS  = -std=gnu99 -g -c
+CFLAGS  = -std=gnu99 -g -c -D_FILE_OFFSET_BITS=64
 COFLAGS = -o
 LDFLAGS = 
 LOFLAGS = -o

mercurial