From ec0bf8117d1aefd20711a6152ebbca63f3bd0774 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Fri, 11 Nov 2016 10:58:08 -0500 Subject: rts: Fix LoadArchive on OS X --- rts/linker/LoadArchive.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'rts/linker/LoadArchive.c') diff --git a/rts/linker/LoadArchive.c b/rts/linker/LoadArchive.c index 6e1fb29628..a5af719cfd 100644 --- a/rts/linker/LoadArchive.c +++ b/rts/linker/LoadArchive.c @@ -9,8 +9,15 @@ #include "PathUtils.h" #include "LinkerInternals.h" #include "linker/M32Alloc.h" + +/* Platform specific headers */ #if defined(OBJFORMAT_PEi386) -#include "linkers/PEi386.h" +# include "linkers/PEi386.h" +#elif defined(darwin_HOST_OS) +# include "linker/MachO.h" +# include +# include +# include #endif #include -- cgit v1.2.1