Hi, this patch fixes a compiler warning about the redefinition of SIZEOF_OFF_T on 32bit systems. It's not very elegant, but I don't know of a portable way to check if python was compiles with large file support. If anyone knows, please enlighten me.
It might be possible the this patch leads to problems on systems where python was compiled without large file support, but I think most will have it. bye, Sumit
>From d28d33218bad200da3781921e1a98a095660121a Mon Sep 17 00:00:00 2001 From: Sumit Bose <sb...@redhat.com> Date: Fri, 25 Sep 2009 17:12:06 +0200 Subject: [PATCH] add defines for large file support to standard CFLAGS - this fixes a compiler warning about the redefinition of SIZEOF_OFF_T in the python bindings, because python is compiled with large file support. --- server/configure.ac | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/server/configure.ac b/server/configure.ac index 03d2885..422429b 100644 --- a/server/configure.ac +++ b/server/configure.ac @@ -14,6 +14,8 @@ AC_DEFUN([SMB_ENABLE], [echo -n ""]) AC_INIT([sss_daemon], m4_esyscmd([cat ../VERSION |head -n1 | tr -d '\n']), [sssd-de...@lists.fedorahosted.org]) +CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" + AC_CONFIG_SRCDIR([conf_macros.m4]) AC_CONFIG_AUX_DIR([build]) -- 1.6.2.5
_______________________________________________ sssd-devel mailing list sssd-devel@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/sssd-devel