lewellyn found QNX also doesn’t have a struct timezone ⇒ just DROP it!
This commit is contained in:
parent
1f96d87aea
commit
5dd5edea1a
12
main.c
12
main.c
@ -34,7 +34,7 @@
|
|||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
#endif
|
#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;
|
extern char **environ;
|
||||||
|
|
||||||
@ -111,10 +111,6 @@ rndsetup(void)
|
|||||||
void *dataptr, *stkptr, *mallocptr;
|
void *dataptr, *stkptr, *mallocptr;
|
||||||
sigjmp_buf jbuf;
|
sigjmp_buf jbuf;
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
#if !defined(_MINIX)
|
|
||||||
/*XXX imake style */
|
|
||||||
struct timezone tz;
|
|
||||||
#endif
|
|
||||||
} *bufptr;
|
} *bufptr;
|
||||||
char *cp;
|
char *cp;
|
||||||
|
|
||||||
@ -133,12 +129,8 @@ rndsetup(void)
|
|||||||
bufptr->mallocptr = bufptr;
|
bufptr->mallocptr = bufptr;
|
||||||
/* glibc pointer guard */
|
/* glibc pointer guard */
|
||||||
sigsetjmp(bufptr->jbuf, 1);
|
sigsetjmp(bufptr->jbuf, 1);
|
||||||
/* introduce variation */
|
/* introduce variation (and yes, second arg MBZ for portability) */
|
||||||
#if !defined(_MINIX)
|
|
||||||
gettimeofday(&bufptr->tv, &bufptr->tz);
|
|
||||||
#else
|
|
||||||
gettimeofday(&bufptr->tv, NULL);
|
gettimeofday(&bufptr->tv, NULL);
|
||||||
#endif
|
|
||||||
|
|
||||||
NZATInit(h);
|
NZATInit(h);
|
||||||
/* variation through pid, ppid, and the works */
|
/* variation through pid, ppid, and the works */
|
||||||
|
Loading…
Reference in New Issue
Block a user