r18913: an attempt to get tdb/ldb working on the HPUX box 'gwen'. This idea
authorAndrew Tridgell <tridge@samba.org>
Tue, 26 Sep 2006 03:11:31 +0000 (03:11 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:20:20 +0000 (14:20 -0500)
come from Don McCall. Don may well be able to provide us with a
configure test in the future which does this in a nicer way, I just
want to see if it works now.
(This used to be commit f7f548a1c79a78a1b15e96732994135cba94aa3d)

source4/lib/replace/libreplace_cc.m4

index 352d115547376b22378d7600ad193b16f31e2d68..37c15513512d6a60c68f31c227f8a060ac2c6275 100644 (file)
@@ -60,6 +60,7 @@ case "$host_os" in
        *hpux*)
                # mmap on HPUX is completely broken...
                AC_DEFINE(MMAP_BLACKLIST, 1, [Whether MMAP is broken])
+               CFLAGS="$CFLAGS -D_LARGEFILE64_SUPPORT -D__LP64__ -DO_LARGEFILE=04000"
                ;;
        *aix*)
                if test "${GCC}" != "yes"; then