aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-connectivity/samba/samba-3.6.8/bug_221618_precise-64bit-prototype.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-connectivity/samba/samba-3.6.8/bug_221618_precise-64bit-prototype.patch')
-rw-r--r--recipes-connectivity/samba/samba-3.6.8/bug_221618_precise-64bit-prototype.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/recipes-connectivity/samba/samba-3.6.8/bug_221618_precise-64bit-prototype.patch b/recipes-connectivity/samba/samba-3.6.8/bug_221618_precise-64bit-prototype.patch
new file mode 100644
index 0000000..31108f2
--- /dev/null
+++ b/recipes-connectivity/samba/samba-3.6.8/bug_221618_precise-64bit-prototype.patch
@@ -0,0 +1,20 @@
+Description: 64 bit fix for libsmbclient
+Author: Christian Perrier <bubulle@debian.org>
+Bug-Debian: http://bugs.debian.org/221618
+Forwarded: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=221618#27
+
+Index: samba/source3/include/libsmbclient.h
+===================================================================
+--- samba.orig/source3/include/libsmbclient.h
++++ samba/source3/include/libsmbclient.h
+@@ -79,6 +79,10 @@
+ #include <fcntl.h>
+ #include <utime.h>
+
++ /* Debian bug #221618 */
++#define _LARGEFILE64_SOURCE
++#define _FILE_OFFSET_BITS 64
++
+ #define SMBC_BASE_FD 10000 /* smallest file descriptor returned */
+
+ #define SMBC_WORKGROUP 1