From 3f0a0a895733516bbdd8a92273b5a19ef4ff73a1 Mon Sep 17 00:00:00 2001 From: ru Date: Tue, 13 Aug 2002 16:52:52 +0000 Subject: Bootstrapping aid for pre-getprogname(3) systems. Spotted by: Gareth Hopkins Approved by: nectar MFC after: 3 days --- kerberos5/include/config.h | 8 ++++++++ kerberos5/lib/libasn1/Makefile | 4 ++++ kerberos5/lib/libhdb/Makefile | 4 ++++ 3 files changed, 16 insertions(+) (limited to 'kerberos5') diff --git a/kerberos5/include/config.h b/kerberos5/include/config.h index a76a7de..6812a53 100644 --- a/kerberos5/include/config.h +++ b/kerberos5/include/config.h @@ -3,6 +3,8 @@ /* $FreeBSD$ */ +#include + #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 diff --git a/kerberos5/lib/libasn1/Makefile b/kerberos5/lib/libasn1/Makefile index 4806ca5..f38c2bf 100644 --- a/kerberos5/lib/libasn1/Makefile +++ b/kerberos5/lib/libasn1/Makefile @@ -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 diff --git a/kerberos5/lib/libhdb/Makefile b/kerberos5/lib/libhdb/Makefile index 8009de0..5a433f1 100644 --- a/kerberos5/lib/libhdb/Makefile +++ b/kerberos5/lib/libhdb/Makefile @@ -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 -- cgit v1.1