Bootstrapping aid for pre-getprogname(3) systems.

Spotted by:	Gareth Hopkins <gareth@za.uu.net>
Approved by:	nectar
MFC after:	3 days
This commit is contained in:
Ruslan Ermilov 2002-08-13 16:52:52 +00:00
parent 35655e3c45
commit 9645701d92
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=101834
3 changed files with 16 additions and 0 deletions

View File

@ -3,6 +3,8 @@
/* $FreeBSD$ */
#include <osreldate.h>
#ifndef RCSID
#define RCSID(msg) static /**/const char *const rcsid[] = { (const char *)rcsid, "\100(#)" msg }
#endif
@ -284,7 +286,10 @@
#define HAVE_GETOPT 1
/* Define if you have the `getprogname' function. */
#if (__FreeBSD_version >= 430002 && __FreeBSD_version < 500000) || \
__FreeBSD_version >= 500019
#define HAVE_GETPROGNAME 1
#endif
/* Define if you have the `getpwnam_r' function. */
/* #undef HAVE_GETPWNAM_R */
@ -582,7 +587,10 @@
#define HAVE_SETPROCTITLE 1
/* Define if you have the `setprogname' function. */
#if (__FreeBSD_version >= 430002 && __FreeBSD_version < 500000) || \
__FreeBSD_version >= 500019
#define HAVE_SETPROGNAME 1
#endif
/* Define if you have the `setregid' function. */
#define HAVE_SETREGID 1

View File

@ -106,6 +106,10 @@ asn1_compile: \
strupr.c
${CC} ${CFLAGS} ${.OODATE} -o ${.TARGET}
.if defined(BOOTSTRAPPING)
asn1_compile: getprogname.c setprogname.c
.endif
parse.o: parse.c roken.h
.ORDER: parse.c parse.h

View File

@ -61,6 +61,10 @@ asn1_compile: parse.o lex.o main.c hash.c symbol.c emalloc.c gen.c \
get_window_size.c strupr.c
${CC} ${CFLAGS} ${.OODATE} -o ${.TARGET}
.if defined(BOOTSTRAPPING)
asn1_compile: getprogname.c setprogname.c
.endif
parse.o: parse.c
.ORDER: parse.c parse.h