From: Stefan Metzmacher Date: Mon, 4 Jun 2007 09:57:59 +0000 (+0000) Subject: r23335: as not all source files include replace.h/config.h X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~278 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1716613cc7ab8dec739adadeadbf18937682cd5c;p=thirdparty%2Fsamba.git r23335: as not all source files include replace.h/config.h before unistd.h we need to pass -D_FILE_OFFSET_BITS=64 together with -Dpread=pread64 -Dpwrite=pwrite64 metze --- diff --git a/source/lib/replace/libreplace_cc.m4 b/source/lib/replace/libreplace_cc.m4 index a01bf1b2904..780cf62dec8 100644 --- a/source/lib/replace/libreplace_cc.m4 +++ b/source/lib/replace/libreplace_cc.m4 @@ -62,7 +62,7 @@ case "$host_os" in AC_DEFINE(MMAP_BLACKLIST, 1, [Whether MMAP is broken]) if test "`uname -r`" = "B.11.00" -o "`uname -r`" = "B.11.11"; then AC_MSG_WARN([Enabling HPUX 11.00/11.11 header bug workaround]) - CFLAGS="$CFLAGS -Dpread=pread64 -Dpwrite=pwrite64" + CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -Dpread=pread64 -Dpwrite=pwrite64" fi if test "`uname -r`" = "B.11.23"; then AC_MSG_WARN([Enabling HPUX 11.23 machine/sys/getppdp.h bug workaround])