diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-11-15 16:40:32 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2008-01-18 17:02:11 +0100 |
commit | 0e1348869e50715f889a97a375abc7ae1af13d69 (patch) | |
tree | 49a24ea3d93ad20a296770f8fdfb09770afb55ee /source3/lib | |
parent | f75898d5b5712bcd8cb45cd54893932c1d0e5b36 (diff) | |
download | samba-0e1348869e50715f889a97a375abc7ae1af13d69.tar.gz samba-0e1348869e50715f889a97a375abc7ae1af13d69.tar.bz2 samba-0e1348869e50715f889a97a375abc7ae1af13d69.zip |
r25976: libreplace: not all platforms like _XOPEN_SOURCE=600
- Only use _XOPEN_SOURCE=600 on Tru64
- _OSF_SOURCE is also Tru64 specific
metze
(cherry picked from commit d19ab62081ce4ee4273ff752ad0443782a994826)
(This used to be commit dbff70b2ebe7cc09f7fbe5a0319f978dfcfa1da9)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/replace/libreplace_cc.m4 | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/lib/replace/libreplace_cc.m4 b/source3/lib/replace/libreplace_cc.m4 index 3f0a337083..bf5056838d 100644 --- a/source3/lib/replace/libreplace_cc.m4 +++ b/source3/lib/replace/libreplace_cc.m4 @@ -49,8 +49,6 @@ AC_PROG_INSTALL AC_ISC_POSIX AC_N_DEFINE(_XOPEN_SOURCE_EXTENDED) -AC_N_DEFINE(_XOPEN_SOURCE,600) -AC_N_DEFINE(_OSF_SOURCE) AC_SYS_LARGEFILE @@ -78,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. # |