From: Jarkko Hietaniemi Date: Wed, 27 Aug 2003 13:01:26 +0000 (+0000) Subject: Ultrix tweaks: must not be included twice X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5518ecd4c71d9e274b4e6a0c6a7d04bade4a7cd9;p=p5sagit%2Fp5-mst-13.2.git Ultrix tweaks: must not be included twice (otherwise one gets prototype conflicts between the and proto.h because Ultrix thinks e.g. Perl_ninstr has been define in ...); and Configure misprobes some features. p4raw-id: //depot/perl@20916 --- diff --git a/ext/POSIX/POSIX.xs b/ext/POSIX/POSIX.xs index d054ce9..54e087a 100644 --- a/ext/POSIX/POSIX.xs +++ b/ext/POSIX/POSIX.xs @@ -61,7 +61,9 @@ #ifdef I_STDLIB #include #endif +#ifndef __ultrix__ #include +#endif #include #include #include diff --git a/ext/SDBM_File/sdbm/sdbm.c b/ext/SDBM_File/sdbm/sdbm.c index 31889d9..a3c4acf 100644 --- a/ext/SDBM_File/sdbm/sdbm.c +++ b/ext/SDBM_File/sdbm/sdbm.c @@ -24,7 +24,9 @@ #endif #ifdef I_STRING -# include +# ifndef __ultrix__ +# include +# endif #else # include #endif diff --git a/ext/SDBM_File/sdbm/sdbm.h b/ext/SDBM_File/sdbm/sdbm.h index 86ba82d..8405fea 100644 --- a/ext/SDBM_File/sdbm/sdbm.h +++ b/ext/SDBM_File/sdbm/sdbm.h @@ -186,9 +186,11 @@ Free_t Perl_mfree proto((Malloc_t where)); #endif /* MYMALLOC */ #ifdef I_STRING -#include +# ifndef __ultrix__ +# include +# endif #else -#include +# include #endif #ifdef I_MEMORY diff --git a/ext/Socket/Socket.xs b/ext/Socket/Socket.xs index 139e9cb..040dda4 100644 --- a/ext/Socket/Socket.xs +++ b/ext/Socket/Socket.xs @@ -30,7 +30,7 @@ # if defined(__sgi) && !defined(AF_LINK) && defined(PF_LINK) && PF_LINK == AF_LNK # undef PF_LINK # endif -# ifdef I_NETINET_IN +# if defined(I_NETINET_IN) || defined(__ultrix__) # include # endif # ifdef I_NETDB diff --git a/hints/ultrix_4.sh b/hints/ultrix_4.sh index 74d98ae..5954d24 100644 --- a/hints/ultrix_4.sh +++ b/hints/ultrix_4.sh @@ -75,3 +75,7 @@ d_mkstemp='undef' # There simply isn't dynaloading in Ultrix. usedl='undef' +# There are and gettimeofday(), +# despite of what Configure thinks. +i_niin='define' +d_gettimeod='define'