Perform first-aid: unbreak the build for amd64 and ia64 by patching

osunixxf.c on the fly. This avoids having to pull it from the vendor
branch or otherwise pollute the repository with new short-lived files.

This should hold until the real fix arrives.
This commit is contained in:
Marcel Moolenaar 2003-08-09 07:06:09 +00:00
parent 530299d144
commit 67fdc6b784
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118691

View File

@ -2,7 +2,7 @@
PROG= acpidb
SRCS+= acpidb.c
SRCS+= osunixxf.c
SRCS+= osunixxf-xxx.c
SRCS+= dbcmds.c dbdisply.c dbexec.c dbfileio.c \
dbhistry.c dbinput.c dbstats.c dbutils.c \
dbxface.c dmbuffer.c dmnames.c dmobject.c \
@ -39,4 +39,8 @@ MAN= acpidb.8
CFLAGS+= -DACPI_APPLICATION -DACPI_DEBUG_OUTPUT -DACPI_DEBUGGER \
-DACPI_DISASSEMBLER
CLEANFILES+= osunixxf-xxx.c
osunixxf-xxx.c: osunixxf.c
cat ${.ALLSRC} | sed -e 's/UINT32 *length/ACPI_SIZE length/g' -e 's/UINT32 *size/ACPI_SIZE size/g' -e 's/(UINT32) where/(uintptr_t)where/g' > ${.TARGET}
.include <bsd.prog.mk>