From: Perl 5 Porters Date: Wed, 7 Feb 1996 22:51:37 +0000 (+0000) Subject: perl 5.002gamma: hints/sunos_4_1.sh X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0093f865a9591685e5133706620ffc98921355da;p=p5sagit%2Fp5-mst-13.2.git perl 5.002gamma: hints/sunos_4_1.sh Add comment at tzname. Add -DSTRUCT_TM_HASZONE flag for POSIX. --- diff --git a/hints/sunos_4_1.sh b/hints/sunos_4_1.sh index ba469b3..ee42e2c 100644 --- a/hints/sunos_4_1.sh +++ b/hints/sunos_4_1.sh @@ -1,8 +1,22 @@ +# hints/sunos_4_1.sh +# Last modified: Thu Feb 8 11:46:05 EST 1996 +# Andy Dougherty + case "$cc" in *gcc*) usevfork=false ;; *) usevfork=true ;; esac + +# Configure will issue a WHOA warning. The problem is that +# Configure finds getzname, not tzname. If you're in the System V +# environment, you can set d_tzname='define' since tzname[] is +# available in the System V environment. d_tzname='undef' + +# SunOS 4.1.3 has two extra fields in struct tm. This works around +# the problem. Other BSD platforms may have similar problems. +POSIX_cflags='ccflags="$ccflags -DSTRUCT_TM_HASZONE"' + # check if user is in a bsd or system 5 type environment if cat -b /dev/null 2>/dev/null then # bsd @@ -10,5 +24,4 @@ then # bsd else # sys5 groupstype='gid_t' fi -# we don't set gidtype because unistd.h says gid_t getgid() but man -# page says int getgid() for bsd. utils.c includes unistd.h :-( +