summaryrefslogtreecommitdiffstats
path: root/kerberos5
diff options
context:
space:
mode:
authorkan <kan@FreeBSD.org>2007-05-19 03:29:37 +0000
committerkan <kan@FreeBSD.org>2007-05-19 03:29:37 +0000
commit20a6c9830cf5798a9c07f78b922b50fd74b72849 (patch)
treede6ee5e71b561d0b43976680a2668bbd82d4fab6 /kerberos5
parent5d4b28ff73471f018e86d4466fea43758794d8c6 (diff)
downloadFreeBSD-src-20a6c9830cf5798a9c07f78b922b50fd74b72849.zip
FreeBSD-src-20a6c9830cf5798a9c07f78b922b50fd74b72849.tar.gz
Fix generator glue to only expose extern struct units %s_units[] is
struct units defintition it known. The above construct is treated as an incorrect C by GCC 4.2 otherwise.
Diffstat (limited to 'kerberos5')
-rw-r--r--kerberos5/tools/asn1_compile/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/kerberos5/tools/asn1_compile/Makefile b/kerberos5/tools/asn1_compile/Makefile
index c03e653..a8ffa32 100644
--- a/kerberos5/tools/asn1_compile/Makefile
+++ b/kerberos5/tools/asn1_compile/Makefile
@@ -8,7 +8,7 @@ SRCS= gen.c \
gen_decode.c \
gen_encode.c \
gen_free.c \
- gen_glue.c \
+ gen_glue-fixed.c \
gen_length.c \
hash.c \
emalloc.c \
@@ -40,6 +40,11 @@ roken.h: ../make-roken/make-roken
../make-roken/make-roken: .PHONY
cd ${.CURDIR}/../make-roken && ${MAKE}
+gen_glue-fixed.c: gen_glue.c
+ sed -e '106s/"/"#ifdef __PARSE_UNITS_H__\\n/;'\
+ -e '106s/",/\\n#endif\\n",/' ${.ALLSRC} > ${.TARGET}
+CLEANFILES+= gen_glue-fixed.c
+
.include <bsd.prog.mk>
# There are two print_version.c's, the one we need is in ${KRB5DIR}/lib/vers,
OpenPOWER on IntegriCloud