Add hooks for cross-hosting on non-NetBSD platforms.
This commit is contained in:
parent
e0747a992d
commit
5c99654526
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: mdsetimage.c,v 1.2 2002/01/03 06:21:47 cgd Exp $ */
|
||||
/* $NetBSD: mdsetimage.c,v 1.3 2002/01/21 19:22:53 tv Exp $ */
|
||||
/* from: NetBSD: mdsetimage.c,v 1.15 2001/03/21 23:46:48 cgd Exp $ */
|
||||
|
||||
/*
|
||||
@ -30,6 +30,12 @@
|
||||
* <<Id: LICENSE_GC,v 1.1 2001/10/01 23:24:05 cgd Exp>>
|
||||
*/
|
||||
|
||||
#if HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#else
|
||||
#define HAVE_ERR_H 1
|
||||
#endif
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__COPYRIGHT(
|
||||
@ -38,21 +44,25 @@ __COPYRIGHT(
|
||||
#endif /* not lint */
|
||||
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: mdsetimage.c,v 1.2 2002/01/03 06:21:47 cgd Exp $");
|
||||
__RCSID("$NetBSD: mdsetimage.c,v 1.3 2002/01/21 19:22:53 tv Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/mman.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include <err.h>
|
||||
#include <fcntl.h>
|
||||
#include <limits.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <bfd.h>
|
||||
|
||||
#if HAVE_ERR_H
|
||||
#include <err.h>
|
||||
#endif
|
||||
|
||||
struct symbols {
|
||||
char *name;
|
||||
bfd_vma vma;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: mkdep.c,v 1.8 2001/03/22 02:41:02 cgd Exp $ */
|
||||
/* $NetBSD: mkdep.c,v 1.9 2002/01/21 19:25:00 tv Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||
@ -36,6 +36,12 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#if HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#else
|
||||
#define HAVE_ERR_H 1
|
||||
#endif
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__COPYRIGHT("@(#) Copyright (c) 1999 The NetBSD Foundation, Inc.\n\
|
||||
@ -43,14 +49,12 @@ __COPYRIGHT("@(#) Copyright (c) 1999 The NetBSD Foundation, Inc.\n\
|
||||
#endif /* not lint */
|
||||
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: mkdep.c,v 1.8 2001/03/22 02:41:02 cgd Exp $");
|
||||
__RCSID("$NetBSD: mkdep.c,v 1.9 2002/01/21 19:25:00 tv Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/wait.h>
|
||||
|
||||
#include <ctype.h>
|
||||
#include <err.h>
|
||||
#include <locale.h>
|
||||
#include <paths.h>
|
||||
#include <stdio.h>
|
||||
@ -58,6 +62,10 @@ __RCSID("$NetBSD: mkdep.c,v 1.8 2001/03/22 02:41:02 cgd Exp $");
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#if HAVE_ERR_H
|
||||
#include <err.h>
|
||||
#endif
|
||||
|
||||
#define DEFAULT_CC "cc"
|
||||
#define DEFAULT_PATH _PATH_DEFPATH
|
||||
#define DEFAULT_FILENAME ".depend"
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: tsort.c,v 1.15 2001/06/11 01:50:58 wiz Exp $ */
|
||||
/* $NetBSD: tsort.c,v 1.16 2002/01/21 19:24:08 tv Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993, 1994
|
||||
@ -36,6 +36,12 @@
|
||||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#if HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#else
|
||||
#define HAVE_ERR_H 1
|
||||
#endif
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__COPYRIGHT("@(#) Copyright (c) 1989, 1993, 1994\n\
|
||||
@ -46,14 +52,12 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993, 1994\n\
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)tsort.c 8.3 (Berkeley) 5/4/95";
|
||||
#endif
|
||||
__RCSID("$NetBSD: tsort.c,v 1.15 2001/06/11 01:50:58 wiz Exp $");
|
||||
__RCSID("$NetBSD: tsort.c,v 1.16 2002/01/21 19:24:08 tv Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <ctype.h>
|
||||
#include <db.h>
|
||||
#include <err.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <stdio.h>
|
||||
@ -61,6 +65,10 @@ __RCSID("$NetBSD: tsort.c,v 1.15 2001/06/11 01:50:58 wiz Exp $");
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#if HAVE_ERR_H
|
||||
#include <err.h>
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Topological sort. Input is a list of pairs of strings separated by
|
||||
* white space (spaces, tabs, and/or newlines); strings are written to
|
||||
|
Loading…
Reference in New Issue
Block a user