summaryrefslogtreecommitdiffstats
path: root/kerberos5
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2002-08-13 16:52:52 +0000
committerru <ru@FreeBSD.org>2002-08-13 16:52:52 +0000
commit3f0a0a895733516bbdd8a92273b5a19ef4ff73a1 (patch)
tree9e3f61b1e0c6777e6f8a479dd5de99bb44d3575e /kerberos5
parent9d7acfc814d93b5d8306c71ff7704336fd17e1c4 (diff)
downloadFreeBSD-src-3f0a0a895733516bbdd8a92273b5a19ef4ff73a1.zip
FreeBSD-src-3f0a0a895733516bbdd8a92273b5a19ef4ff73a1.tar.gz
Bootstrapping aid for pre-getprogname(3) systems.
Spotted by: Gareth Hopkins <gareth@za.uu.net> Approved by: nectar MFC after: 3 days
Diffstat (limited to 'kerberos5')
-rw-r--r--kerberos5/include/config.h8
-rw-r--r--kerberos5/lib/libasn1/Makefile4
-rw-r--r--kerberos5/lib/libhdb/Makefile4
3 files changed, 16 insertions, 0 deletions
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 <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
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
OpenPOWER on IntegriCloud