From 942b9b160d3e03238290878fa86b771a5f75c336 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Mon, 21 Jul 2014 22:01:59 +0200 Subject: [PATCH] Add an old patch sitting around for acpica Just for the record. --- sys-power/iasl/patches/acpica-haiku.diff | 31 ++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 sys-power/iasl/patches/acpica-haiku.diff diff --git a/sys-power/iasl/patches/acpica-haiku.diff b/sys-power/iasl/patches/acpica-haiku.diff new file mode 100644 index 000000000..a1d4dd99f --- /dev/null +++ b/sys-power/iasl/patches/acpica-haiku.diff @@ -0,0 +1,31 @@ +Index: compiler/Makefile +=================================================================== +--- compiler/Makefile (revision 41258) ++++ compiler/Makefile (working copy) +@@ -12,7 +12,7 @@ + ACPICA_OSL = $(ACPICA_SRC)/os_specific/service_layers + + NOMAN= YES +-CFLAGS+= -Wall -O2 -Wstrict-prototypes -D_LINUX -DACPI_ASL_COMPILER -I../include -I../compiler ++CFLAGS+= -Wall -O2 -Wstrict-prototypes -DACPI_ASL_COMPILER -I../include -I../compiler + + # + # Bison/Flex configuration +@@ -25,9 +25,16 @@ + + + COMPILE = $(CC) -c $(CFLAGS) -o$@ $? ++ ++OS ?= Linux ++ifeq ($(OS),Linux) ++CFLAGS += -D_LINUX + LDFLAGS += -lpthread -lrt ++endif ++ifeq ($(OS),Haiku) ++CFLAGS += -D_LINUX ++endif + +- + OBJS = \ + adfile.o \ + adisasm.o \