summaryrefslogtreecommitdiff
path: root/hints/sunos_4_1.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hints/sunos_4_1.sh')
-rw-r--r--hints/sunos_4_1.sh17
1 files changed, 15 insertions, 2 deletions
diff --git a/hints/sunos_4_1.sh b/hints/sunos_4_1.sh
index ba469b3e71..ee42e2c448 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 <doughera@lafcol.lafayette.edu>
+
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 :-(
+