diff --git a/sbin/dhclient/minires/Makefile b/sbin/dhclient/minires/Makefile index 0b43590b4dec..32e72a30b76b 100644 --- a/sbin/dhclient/minires/Makefile +++ b/sbin/dhclient/minires/Makefile @@ -9,7 +9,7 @@ LIB= res INTERNALLIB= true INTERNALSTATICLIB= true -SRCS= ns_date.c ns_name.c ns_parse.c ns_samedomain.c ns_sign.c ns_verify.c \ +SRCS= ns_date.c ns_name.c ns_parse%FIXED.c ns_samedomain.c ns_sign.c ns_verify.c \ res_comp.c res_findzonecut.c res_init.c res_mkquery.c res_mkupdate.c \ res_query.c res_send.c res_sendsigned.c res_update.c @@ -17,4 +17,9 @@ CFLAGS+= -DHMAC_MD5 -DMINIRES_LIB NOMAN= true +CLEANFILES+= ns_parse%FIXED.c +ns_parse%FIXED.c: ns_parse.c + sed 's/struct _ns_flagdata _ns_flagdata/struct _ns_flagdata _ns_flagdata_DONT/' \ + ${.ALLSRC} > ${.TARGET} + .include