From 5dd5edea1ae200efe3f10fcb30e193552946a9d9 Mon Sep 17 00:00:00 2001 From: tg Date: Sat, 24 Mar 2012 22:11:41 +0000 Subject: [PATCH] =?UTF-8?q?lewellyn=20found=20QNX=20also=20doesn=E2=80=99t?= =?UTF-8?q?=20have=20a=20struct=20timezone=20=E2=87=92=20just=20DROP=20it!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/main.c b/main.c index dc1b61b..8022782 100644 --- a/main.c +++ b/main.c @@ -34,7 +34,7 @@ #include #endif -__RCSID("$MirOS: src/bin/mksh/main.c,v 1.209 2012/03/23 22:36:23 tg Exp $"); +__RCSID("$MirOS: src/bin/mksh/main.c,v 1.210 2012/03/24 22:11:41 tg Exp $"); extern char **environ; @@ -111,10 +111,6 @@ rndsetup(void) void *dataptr, *stkptr, *mallocptr; sigjmp_buf jbuf; struct timeval tv; -#if !defined(_MINIX) - /*XXX imake style */ - struct timezone tz; -#endif } *bufptr; char *cp; @@ -133,12 +129,8 @@ rndsetup(void) bufptr->mallocptr = bufptr; /* glibc pointer guard */ sigsetjmp(bufptr->jbuf, 1); - /* introduce variation */ -#if !defined(_MINIX) - gettimeofday(&bufptr->tv, &bufptr->tz); -#else + /* introduce variation (and yes, second arg MBZ for portability) */ gettimeofday(&bufptr->tv, NULL); -#endif NZATInit(h); /* variation through pid, ppid, and the works */