summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-09-09 03:16:05 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:18:01 -0500
commit55a760ddf3cd146ac68af1ff460d6a26ae209c04 (patch)
tree6b3c2741dee391aee39a80bab13c6adb4e8e0937
parente6b457d55031f1987c8fa5719c5bbf46743281a0 (diff)
downloadsamba-55a760ddf3cd146ac68af1ff460d6a26ae209c04.tar.gz
samba-55a760ddf3cd146ac68af1ff460d6a26ae209c04.tar.bz2
samba-55a760ddf3cd146ac68af1ff460d6a26ae209c04.zip
r18284: enable _XOPEN_SOURCE_EXTENDED to fix a HP-UX bug with the definition
of sendfile() (This used to be commit 3e0f262b384b73183452aefabca93c01d53387a8)
-rw-r--r--source4/lib/replace/libreplace.m46
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/lib/replace/libreplace.m4 b/source4/lib/replace/libreplace.m4
index 519b911de5..ef8087607e 100644
--- a/source4/lib/replace/libreplace.m4
+++ b/source4/lib/replace/libreplace.m4
@@ -18,6 +18,12 @@ AC_C_INLINE
AC_PROG_CC
AC_PROG_INSTALL
+AH_VERBATIM([_XOPEN_SOURCE_EXTENDED],
+[/* Enable XOPEN extensions on systems that have them. */
+#ifndef _XOPEN_SOURCE_EXTENDED
+# define _XOPEN_SOURCE_EXTENDED 1
+#endif])
+
LIBREPLACE_C99_STRUCT_INIT([],[])
AC_SYS_LARGEFILE