summaryrefslogtreecommitdiffstats
path: root/usr.sbin/acpi
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2003-08-09 07:06:09 +0000
committermarcel <marcel@FreeBSD.org>2003-08-09 07:06:09 +0000
commitaf63867e649990c1b529ad6283a787e6e7b13e14 (patch)
treeba9cce2c7b282349e2f97b0134025144ca2fcb2e /usr.sbin/acpi
parenta99e26741c5ac59f6545636e1b5e13cde599bb74 (diff)
downloadFreeBSD-src-af63867e649990c1b529ad6283a787e6e7b13e14.zip
FreeBSD-src-af63867e649990c1b529ad6283a787e6e7b13e14.tar.gz
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.
Diffstat (limited to 'usr.sbin/acpi')
-rw-r--r--usr.sbin/acpi/acpidb/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/acpi/acpidb/Makefile b/usr.sbin/acpi/acpidb/Makefile
index e8c98a6..288f86e 100644
--- a/usr.sbin/acpi/acpidb/Makefile
+++ b/usr.sbin/acpi/acpidb/Makefile
@@ -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>
OpenPOWER on IntegriCloud