aboutsummaryrefslogtreecommitdiff
path: root/examples/symlinks/patches
diff options
context:
space:
mode:
authorIgor Pashev <igor.pashev@nexenta.com>2012-10-11 18:44:23 +0400
committerIgor Pashev <igor.pashev@nexenta.com>2012-10-11 18:44:23 +0400
commit11cb4b33c79b0e0cf249ef6660851228e26b70cc (patch)
tree125fa50db28afe07e3137d11ea6f81d37e09dd46 /examples/symlinks/patches
parent0d0a8948677cb29e2d99dc353f9ff71014fa9bac (diff)
downloadcibs-11cb4b33c79b0e0cf249ef6660851228e26b70cc.tar.gz
symlinks: apply Debian patches
Diffstat (limited to 'examples/symlinks/patches')
-rw-r--r--examples/symlinks/patches/largefile.diff20
-rw-r--r--examples/symlinks/patches/manpage.diff15
2 files changed, 35 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
diff --git a/examples/symlinks/patches/manpage.diff b/examples/symlinks/patches/manpage.diff
new file mode 100644
index 0000000..ab28a38
--- /dev/null
+++ b/examples/symlinks/patches/manpage.diff
@@ -0,0 +1,15 @@
+Description: Fix section of the symlinks manpage
+Author: Sven Joachim <svenjoac@gmx.de>
+
+---
+ symlinks.8 | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/symlinks.8
++++ b/symlinks.8
+@@ -1,4 +1,4 @@
+-.TH SYMLINKS 8 "October 2008" "Version 1.4"
++.TH SYMLINKS 1 "October 2008" "Version 1.4"
+
+ .SH NAME
+ symlinks \- symbolic link maintenance utility