r23335: as not all source files include replace.h/config.h
authorStefan Metzmacher <metze@samba.org>
Mon, 4 Jun 2007 09:57:59 +0000 (09:57 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:23:07 +0000 (12:23 -0500)
before unistd.h we need to pass -D_FILE_OFFSET_BITS=64
together with -Dpread=pread64 -Dpwrite=pwrite64

metze

source/lib/replace/libreplace_cc.m4

index a01bf1b2904df87b2a5365bb10b8d2a462365b8c..780cf62dec8b7c6d60b130b3000a1241e1b4a2c6 100644 (file)
@@ -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])
                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])
                fi
                if test "`uname -r`" = "B.11.23"; then
                        AC_MSG_WARN([Enabling HPUX 11.23 machine/sys/getppdp.h bug workaround])