From a3c734cc52bd242e2bcf428b3af7c71dd3148f6c Mon Sep 17 00:00:00 2001 From: Alexander Kabaev Date: Sat, 19 May 2007 03:29:37 +0000 Subject: [PATCH] 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. --- kerberos5/tools/asn1_compile/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/kerberos5/tools/asn1_compile/Makefile b/kerberos5/tools/asn1_compile/Makefile index c03e6535060f..a8ffa3283c73 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 # There are two print_version.c's, the one we need is in ${KRB5DIR}/lib/vers,