aboutsummaryrefslogtreecommitdiff
path: root/examples/symlinks/patches/largefile.diff
diff options
context:
space:
mode:
Diffstat (limited to 'examples/symlinks/patches/largefile.diff')
-rw-r--r--examples/symlinks/patches/largefile.diff20
1 files changed, 20 insertions, 0 deletions
diff --git a/examples/symlinks/patches/largefile.diff b/examples/symlinks/patches/largefile.diff
new file mode 100644
index 0000000..c62b3ca
--- /dev/null
+++ b/examples/symlinks/patches/largefile.diff
@@ -0,0 +1,20 @@
+Description: Fix warning on large files
+ On files > 2GB on 32-bit systems, symlinks would print annyoing error
+ messages "Value too large for defined data type".
+Author: Eduard Bloch <edi@gmx.de>
+Bug-Debian: http://bugs.debian.org/167122
+
+---
+ symlinks.c | 14 ++++++++++++++
+ 1 file changed, 14 insertions(+)
+
+--- a/symlinks.c
++++ b/symlinks.c
+@@ -1,3 +1,7 @@
++#define _FILE_OFFSET_BITS 64
++#define _LARGEFILE_SOURCE
++#define _LARGEFILE64_SOURCE
++
+ #include <unistd.h>
+ #ifndef _POSIX_SOURCE
+ #define _POSIX_SOURCE