Unbreak the upgrade path from 4.9 after removal of GNU getopt and

<gnuregex.h>.
This commit is contained in:
Ruslan Ermilov 2004-02-20 11:55:14 +00:00
parent 7d72cc5625
commit f3b6219857
3 changed files with 16 additions and 2 deletions

View File

@ -42,8 +42,6 @@
__RCSID("$NetBSD: getopt_long.c,v 1.15 2002/01/31 22:43:40 tv Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
#include <assert.h>
#include <err.h>
#include <errno.h>

View File

@ -51,6 +51,18 @@ SRCS+= progname.c
SRCS+= strtofflags.c
.endif
# Lot of tools need <getopt.h> and getopt_long(3).
.if !exists(/usr/include/getopt.h)
INCS+= getopt.h
.PATH: ${.CURDIR}/../../lib/libc/stdlib
SRCS+= getopt_long.c
.endif
# Some tools depend on a new <regex.h> not requiring <sys/types.h>.
.if ${BOOTSTRAPPING} < 500042
INCS+= regex.h
.endif
.if empty(SRCS)
SRCS= dummy.c
.endif

4
tools/build/regex.h Normal file
View File

@ -0,0 +1,4 @@
/* $FreeBSD$ */
#include <sys/types.h>
#include "/usr/include/regex.h"