Fix build on Solaris 10.

This commit is contained in:
nakayama 2011-03-03 14:53:01 +00:00
parent a5584ec031
commit c09c2a7b34
6 changed files with 22 additions and 7 deletions

View File

@ -14,6 +14,10 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -14,6 +14,10 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <assert.h>
#include <ctype.h>
#include <stdlib.h>

View File

@ -14,6 +14,10 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -1,9 +1,9 @@
# $NetBSD: Makefile,v 1.5 2010/03/07 19:10:10 hans Exp $
# $NetBSD: Makefile,v 1.6 2011/03/03 14:53:01 nakayama Exp $
HOSTPROGNAME= ${_TOOL_PREFIX}zic
HOST_SRCDIR= usr.sbin/zic
.if !empty(HOST_OSTYPE:MSunOS-5.11-*)
.if !empty(HOST_OSTYPE:MSunOS-5.1[01]-*)
HOST_CPPFLAGS= -D_POSIX_PTHREAD_SEMANTICS
.endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: mkioconf.c,v 1.18 2010/03/26 15:51:17 pooka Exp $ */
/* $NetBSD: mkioconf.c,v 1.19 2011/03/03 14:53:01 nakayama Exp $ */
/*
* Copyright (c) 1992, 1993
@ -143,7 +143,7 @@ emithdr(FILE *ofp)
autogen_comment(ofp, "ioconf.c");
(void)snprintf(ifnbuf, sizeof(ifnbuf), "arch/%s/conf/ioconf.incl.%s",
machine, machine);
machine ? machine : "(null)", machine ? machine : "(null)");
ifn = sourcepath(ifnbuf);
if ((ifp = fopen(ifn, "r")) != NULL) {
while ((n = fread(buf, 1, sizeof(buf), ifp)) > 0)

View File

@ -1,4 +1,4 @@
/* $NetBSD: parse.c,v 1.176 2011/02/20 23:12:09 joerg Exp $ */
/* $NetBSD: parse.c,v 1.177 2011/03/03 14:53:02 nakayama Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@ -69,14 +69,14 @@
*/
#ifndef MAKE_NATIVE
static char rcsid[] = "$NetBSD: parse.c,v 1.176 2011/02/20 23:12:09 joerg Exp $";
static char rcsid[] = "$NetBSD: parse.c,v 1.177 2011/03/03 14:53:02 nakayama Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)parse.c 8.3 (Berkeley) 3/19/94";
#else
__RCSID("$NetBSD: parse.c,v 1.176 2011/02/20 23:12:09 joerg Exp $");
__RCSID("$NetBSD: parse.c,v 1.177 2011/03/03 14:53:02 nakayama Exp $");
#endif
#endif /* not lint */
#endif
@ -133,6 +133,9 @@ __RCSID("$NetBSD: parse.c,v 1.176 2011/02/20 23:12:09 joerg Exp $");
#include <stdarg.h>
#include <stdio.h>
#ifndef MAP_FILE
#define MAP_FILE 0
#endif
#ifndef MAP_COPY
#define MAP_COPY MAP_PRIVATE
#endif