Subject: Compilation error for v3.87 on SGI IRIX 5.0.1

From: Chris Martin <[email-masked]>
Date: Tue, 12 Oct 93 10:09:27 BST

build says:

make args are "CC=cc"

Making c-client library and mtest
        rm -f osdep.h
        ln os_sgi.h osdep.h
        cc -O -cckr -Wf,-XNh2000 -Dconst= -c mtest.c
        cc -O -cckr -Wf,-XNh2000 -Dconst= -c mail.c
        cc -O -cckr -Wf,-XNh2000 -Dconst= -c bezerk.c
        cc -O -cckr -Wf,-XNh2000 -Dconst= -c tenex2.c
        cc -O -cckr -Wf,-XNh2000 -Dconst= -c mbox.c
        cc -O -cckr -Wf,-XNh2000 -Dconst= -c mh.c
        cc -O -cckr -Wf,-XNh2000 -Dconst= -c imap2.c
        cc -O -cckr -Wf,-XNh2000 -Dconst= -c news.c
        cc -O -cckr -Wf,-XNh2000 -Dconst= -c nntpclient.c
        cc -O -cckr -Wf,-XNh2000 -Dconst= -c phile.c
        cc -O -cckr -Wf,-XNh2000 -Dconst= -c dummy.c
        cc -O -cckr -Wf,-XNh2000 -Dconst= -c smtp.c
        cc -O -cckr -Wf,-XNh2000 -Dconst= -c nntp.c
        cc -O -cckr -Wf,-XNh2000 -Dconst= -c rfc822.c
        cc -O -cckr -Wf,-XNh2000 -Dconst= -c misc.c
        cc -O -cckr -Wf,-XNh2000 -Dconst= -DRSH=\"rsh\" -DRSHPATH=\"/usr/bsd/rsh
\" -c os_sgi.c
cfe: Error: os_sgi.c, line 90: '_tzname' undefined; reoccurrences will not be re

To correct this I added

	#include <time.h>

to the list of includes in 

	(pine)/imap/non-ANSI/c-client/os_sgi.c

and changed _tzname to tzname.

The diffs are:
*** os_sgi.c    Tue Oct 12 09:52:43 1993
--- os_sgi.c-orig       Mon Oct  4 04:29:26 1993
***************
*** 52,58 ****
  
  #include "osdep.h"
  #include <ctype.h>
- #include <time.h>
  #include <sys/time.h>
  #include <sys/socket.h>
  #include <netinet/in.h>
--- 52,57 ----
***************
*** 88,94 ****
    sprintf (date,"%s, %d %s %d %02d:%02d:%02d %+03d%02d (%s)",
           days[t->tm_wday],t->tm_mday,months[t->tm_mon],t->tm_year+1900,
           t->tm_hour,t->tm_min,t->tm_sec,zone/60,abs(zone)%60,
!          tzname[t->tm_isdst ? 1 : 0]);
  }

  /* Get a block of free storage
--- 87,93 ----
    sprintf (date,"%s, %d %s %d %02d:%02d:%02d %+03d%02d (%s)",
           days[t->tm_wday],t->tm_mday,months[t->tm_mon],t->tm_year+1900,
           t->tm_hour,t->tm_min,t->tm_sec,zone/60,abs(zone)%60,
!          _tzname[t->tm_isdst ? 1 : 0]);
  }

  /* Get a block of free storage
===========================================================================