diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-06-01 13:04:56 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:53:09 -0500 |
commit | d3807e3f5c2d663b60c3739fb9066c66494eb638 (patch) | |
tree | d8a47a397e8ce0a467f6573b9ab56aa4f640fae2 /source4/lib | |
parent | 62b3aaa2e02e181a6b225415ca51b21897b5fb5e (diff) | |
download | samba-d3807e3f5c2d663b60c3739fb9066c66494eb638.tar.gz samba-d3807e3f5c2d663b60c3739fb9066c66494eb638.tar.bz2 samba-d3807e3f5c2d663b60c3739fb9066c66494eb638.zip |
r23293: 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
(This used to be commit bb2da636be57e44d80b2bb52b3bba5c145f4bc68)
Diffstat (limited to 'source4/lib')
-rw-r--r-- | source4/lib/replace/libreplace_cc.m4 | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/lib/replace/libreplace_cc.m4 b/source4/lib/replace/libreplace_cc.m4 index d4b7cfcdff..24dab3c7f8 100644 --- a/source4/lib/replace/libreplace_cc.m4 +++ b/source4/lib/replace/libreplace_cc.m4 @@ -60,7 +60,11 @@ case "$host_os" in *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 |