diff options
-rw-r--r-- | package/elftoaout/Makefile | 4 | ||||
-rw-r--r-- | package/elftoaout/src/elftoaout.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/package/elftoaout/Makefile b/package/elftoaout/Makefile index 9f374e31d..51af97ee8 100644 --- a/package/elftoaout/Makefile +++ b/package/elftoaout/Makefile @@ -20,6 +20,10 @@ $(eval $(call HOST_template,ELFTOAOUT,elftoaout,$(PKG_VERSION)-$(PKG_RELEASE))) HOST_STYLE:= manual +ifeq ($(OS_FOR_BUILD),Darwin) +HOST_CFLAGS+= -I$(ADK_TOPDIR)/adk/include +endif + host-build: $(HOST_CC) $(HOST_CFLAGS) -o $(WRKBUILD)/elftoaout $(WRKBUILD)/elftoaout.c diff --git a/package/elftoaout/src/elftoaout.c b/package/elftoaout/src/elftoaout.c index 943c9ef34..60260b9b2 100644 --- a/package/elftoaout/src/elftoaout.c +++ b/package/elftoaout/src/elftoaout.c @@ -24,7 +24,7 @@ #include <linux/elf.h> #define ELFDATA2MSB 2 #else -#include <sys/elf.h> +#include <elf.h> #endif #define swab16(x) (((x)<<8&0xFF00)|((x)>>8&0x00FF)) |