mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-24 07:40:52 +00:00
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.
This commit is contained in:
parent
44f3233714
commit
a3c734cc52
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=169715
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user