Replace `unix' in two feature tests (slid through my test machine's compiler
update window).
This commit is contained in:
parent
e09f07e643
commit
645061225a
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: zic.c,v 1.12 1998/09/10 15:58:40 kleink Exp $ */
|
/* $NetBSD: zic.c,v 1.13 1998/09/11 10:55:55 kleink Exp $ */
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
@ -6,7 +6,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char elsieid[] = "@(#)zic.c 7.94";
|
static char elsieid[] = "@(#)zic.c 7.94";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: zic.c,v 1.12 1998/09/10 15:58:40 kleink Exp $");
|
__RCSID("$NetBSD: zic.c,v 1.13 1998/09/11 10:55:55 kleink Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* !defined NOID */
|
#endif /* !defined NOID */
|
||||||
#endif /* !defined lint */
|
#endif /* !defined lint */
|
||||||
@ -15,6 +15,7 @@ __RCSID("$NetBSD: zic.c,v 1.12 1998/09/10 15:58:40 kleink Exp $");
|
|||||||
#include "locale.h"
|
#include "locale.h"
|
||||||
#include "tzfile.h"
|
#include "tzfile.h"
|
||||||
#include "sys/stat.h" /* for umask manifest constants */
|
#include "sys/stat.h" /* for umask manifest constants */
|
||||||
|
#include "unistd.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** On some ancient hosts, predicates like `isspace(C)' are defined
|
** On some ancient hosts, predicates like `isspace(C)' are defined
|
||||||
@ -469,9 +470,9 @@ char * argv[];
|
|||||||
register int j;
|
register int j;
|
||||||
register int c;
|
register int c;
|
||||||
|
|
||||||
#ifdef unix
|
#ifdef _POSIX_VERSION
|
||||||
(void) umask(umask(S_IWGRP | S_IWOTH) | (S_IWGRP | S_IWOTH));
|
(void) umask(umask(S_IWGRP | S_IWOTH) | (S_IWGRP | S_IWOTH));
|
||||||
#endif /* defined unix */
|
#endif /* defined _POSIX_VERSION */
|
||||||
#if HAVE_GETTEXT - 0
|
#if HAVE_GETTEXT - 0
|
||||||
(void) setlocale(LC_MESSAGES, "");
|
(void) setlocale(LC_MESSAGES, "");
|
||||||
#ifdef TZ_DOMAINDIR
|
#ifdef TZ_DOMAINDIR
|
||||||
@ -2166,7 +2167,7 @@ char * const argname;
|
|||||||
cp = name = ecpyalloc(argname);
|
cp = name = ecpyalloc(argname);
|
||||||
while ((cp = strchr(cp + 1, '/')) != 0) {
|
while ((cp = strchr(cp + 1, '/')) != 0) {
|
||||||
*cp = '\0';
|
*cp = '\0';
|
||||||
#ifndef unix
|
#ifndef __NetBSD__
|
||||||
/*
|
/*
|
||||||
** DOS drive specifier?
|
** DOS drive specifier?
|
||||||
*/
|
*/
|
||||||
@ -2175,7 +2176,7 @@ char * const argname;
|
|||||||
*cp = '/';
|
*cp = '/';
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
#endif /* !defined unix */
|
#endif /* !defined __NetBSD__ */
|
||||||
if (!itsdir(name)) {
|
if (!itsdir(name)) {
|
||||||
/*
|
/*
|
||||||
** It doesn't seem to exist, so we try to create it.
|
** It doesn't seem to exist, so we try to create it.
|
||||||
|
Loading…
Reference in New Issue
Block a user