Author: metze
Date: 2007-06-01 13:04:56 +0000 (Fri, 01 Jun 2007)
New Revision: 23293

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=23293

Log:
the fix for HP-UX 11.11 doesn't work on HP-UX 11.00
we end up with sozeof(uint64_t) == 4 :-(

the _APP32_64BIT_OFF_T section in <sys/unistd.h> missed
to redirect pread, pwrite to pread64, pwrite64 in HP-UX 11.00
so try it manually as a workarround

metze
Modified:
   branches/SAMBA_4_0/source/lib/replace/libreplace_cc.m4


Changeset:
Modified: branches/SAMBA_4_0/source/lib/replace/libreplace_cc.m4
===================================================================
--- branches/SAMBA_4_0/source/lib/replace/libreplace_cc.m4      2007-06-01 
12:29:22 UTC (rev 23292)
+++ branches/SAMBA_4_0/source/lib/replace/libreplace_cc.m4      2007-06-01 
13:04:56 UTC (rev 23293)
@@ -60,7 +60,11 @@
        *hpux*)
                # mmap on HPUX is completely broken...
                AC_DEFINE(MMAP_BLACKLIST, 1, [Whether MMAP is broken])
-               if test "`uname -r`" = "B.11.00" -o "`uname -r`" = "B.11.11"; 
then
+               if test "`uname -r`" = "B.11.00"; then
+                       AC_MSG_WARN([Enabling HPUX 11.00 header bug workaround])
+                       CFLAGS="$CFLAGS -Dpread=pread64 -Dpwrite=pwrite64"
+               fi
+               if test "`uname -r`" = "B.11.11"; then
                        AC_MSG_WARN([Enabling HPUX 11.11 header bug workaround])
                        CFLAGS="$CFLAGS -D_LARGEFILE64_SUPPORT -D__LP64__ 
-DO_LARGEFILE=04000"
                fi

Reply via email to