small bsdi 4.0 compile problem
the wharf rat
wrat at jump.net
Tue Jan 25 17:11:35 UTC 2000
BSDI 4.0 doesn't define tzname[]; From the man page:
Use of the external variable tzname is discouraged; the tm_zone entry in
the tm structure is preferred.
So I guess "fix" #1 is "correct"...
news: {69} % uname -a
BSD/OS news.laserlink.net 4.0 BSDI BSD/OS 4.0 Kernel #1: Thu Mar 25 22:59:55 EST 1999 root at news.laserlink.net:/usr/src/sys/compile/NEWS i386
news: {70} %
news: {68} % diff -c post.c post.c.orig
*** post.c Tue Jan 25 11:24:43 2000
--- post.c.orig Mon Jan 24 06:01:12 2000
***************
*** 386,396 ****
local->tm_mday, &MONTHS[3 * local->tm_mon], 1900 + local->tm_year,
local->tm_hour, local->tm_min, local->tm_sec,
#ifdef HAVE_TM_GMTOFF
- #ifdef __bsdi__
- local->tm_gmtoff/36, local->tm_zone);
- #else
local->tm_gmtoff/36, tzname[0]);
- #endif
#else
-timezone/36, tzname[0]);
#endif /* HAVE_TM_GMTOFF */
--- 386,392 ----
or
news: {70} %
news: {89} % diff -c nnrpd.h nnrpd.h.orig
*** nnrpd.h Tue Jan 25 11:51:46 2000
--- nnrpd.h.orig Tue Jan 25 11:52:32 2000
***************
*** 220,226 ****
int PY_authenticate(char *ClientHost, char *ClientIP, char *ServerHost, char *
Username, char *Password, char *accesslist);
int PY_authorize(char *ClientHost, char *ClientIP, char *ServerHost, char *Use
rname, char *NewsGroup, int PostFlag, char **reply_message);
#endif /* DO_PYTHON */
-
- #ifdef __bsdi__
- extern char tzname[];
- #endif
--- 220,222 ----
More information about the inn-bugs
mailing list