summaryrefslogtreecommitdiffstats
path: root/ctdb/lib/replace/libreplace_cc.m4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2008-01-05 17:41:01 +1100
committerAndrew Tridgell <tridge@samba.org>2008-01-05 17:41:01 +1100
commit370779a1bb0218f31d02f0976e143d4b5d84b3d4 (patch)
treefd466f27d5334c23eff9dbb61c304e014e868ae9 /ctdb/lib/replace/libreplace_cc.m4
parent67d2b14d908498b28bf19febc958cbf5f91cc1ec (diff)
downloadsamba-370779a1bb0218f31d02f0976e143d4b5d84b3d4.tar.gz
samba-370779a1bb0218f31d02f0976e143d4b5d84b3d4.tar.xz
samba-370779a1bb0218f31d02f0976e143d4b5d84b3d4.zip
update from Samba4
(This used to be ctdb commit 298118c41bd33acd1a34a35a71a28451a45390c5)
Diffstat (limited to 'ctdb/lib/replace/libreplace_cc.m4')
-rw-r--r--ctdb/lib/replace/libreplace_cc.m48
1 files changed, 6 insertions, 2 deletions
diff --git a/ctdb/lib/replace/libreplace_cc.m4 b/ctdb/lib/replace/libreplace_cc.m4
index a01bf1b290..bf5056838d 100644
--- a/ctdb/lib/replace/libreplace_cc.m4
+++ b/ctdb/lib/replace/libreplace_cc.m4
@@ -48,8 +48,7 @@ LIBREPLACE_C99_STRUCT_INIT([],[AC_MSG_WARN([c99 structure initializer are not su
AC_PROG_INSTALL
AC_ISC_POSIX
-AC_EXTENSION_FLAG(_XOPEN_SOURCE_EXTENDED)
-AC_EXTENSION_FLAG(_OSF_SOURCE)
+AC_N_DEFINE(_XOPEN_SOURCE_EXTENDED)
AC_SYS_LARGEFILE
@@ -77,6 +76,11 @@ case "$host_os" in
CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000"
fi
;;
+ *osf*)
+ # this brings in socklen_t
+ AC_N_DEFINE(_XOPEN_SOURCE,600)
+ AC_N_DEFINE(_OSF_SOURCE)
+ ;;
#
# VOS may need to have POSIX support and System V compatibility enabled.
#