summaryrefslogtreecommitdiff
path: root/packages/samba/files/configure.lfs.patch
diff options
context:
space:
mode:
Diffstat (limited to 'packages/samba/files/configure.lfs.patch')
-rw-r--r--packages/samba/files/configure.lfs.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/packages/samba/files/configure.lfs.patch b/packages/samba/files/configure.lfs.patch
new file mode 100644
index 0000000000..f0355ecd8d
--- /dev/null
+++ b/packages/samba/files/configure.lfs.patch
@@ -0,0 +1,12 @@
+--- source/configure.in.virgin 2005-06-27 07:22:15.000000000 +0200
++++ source/configure.in 2005-06-27 07:23:11.000000000 +0200
+@@ -628,7 +628,8 @@
+ #endif
+ }
+ ], [LINUX_LFS_SUPPORT=yes], [LINUX_LFS_SUPPORT=no], [LINUX_LFS_SUPPORT=cross])
+- CPPFLAGS="$old_CPPFLAGS"
++# Ugly hack for cross compile. Just set the CPPFLAGS and go on.
++ CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $old_CPPFLAGS"
+ if test x$LINUX_LFS_SUPPORT = xyes ; then
+ CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
+ AC_DEFINE(_LARGEFILE64_SOURCE, 1, [Whether to enable large file support])