diff --git a/configure b/configure index a7350910d28..24deb976e06 100755 --- a/configure +++ b/configure @@ -5798,6 +5798,7 @@ for ac_header in \ linux/types.h \ linux/ucdrom.h \ mach-o/nlist.h \ + mach-o/loader.h \ mach/mach.h \ mach/machine.h \ machine/cpu.h \ diff --git a/configure.ac b/configure.ac index 1a502dbbef4..1c0ed468c0b 100644 --- a/configure.ac +++ b/configure.ac @@ -418,6 +418,7 @@ AC_CHECK_HEADERS(\ linux/types.h \ linux/ucdrom.h \ mach-o/nlist.h \ + mach-o/loader.h \ mach/mach.h \ mach/machine.h \ machine/cpu.h \ diff --git a/dlls/dbghelp/macho_module.c b/dlls/dbghelp/macho_module.c index 44fa4f2da1c..9aac3e779ce 100644 --- a/dlls/dbghelp/macho_module.c +++ b/dlls/dbghelp/macho_module.c @@ -26,7 +26,7 @@ #include "dbghelp_private.h" -#ifdef __MACH__ +#ifdef HAVE_MACH_O_LOADER_H #include #include @@ -1409,7 +1409,7 @@ struct module* macho_load_module(struct process* pcs, const WCHAR* name, unsign return ml.macho_info.module; } -#else /* !__MACH__ */ +#else /* HAVE_MACH_O_LOADER_H */ BOOL macho_synchronize_module_list(struct process* pcs) { @@ -1441,4 +1441,4 @@ BOOL macho_load_debug_info(struct module* module, struct macho_file_map* fmap) { return FALSE; } -#endif /* __MACH__ */ +#endif /* HAVE_MACH_O_LOADER_H */ diff --git a/include/config.h.in b/include/config.h.in index 98a951f2dd1..0bb6be2e68c 100644 --- a/include/config.h.in +++ b/include/config.h.in @@ -466,6 +466,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_MACH_O_DYLD_IMAGES_H +/* Define to 1 if you have the header file. */ +#undef HAVE_MACH_O_LOADER_H + /* Define to 1 if you have the header file. */ #undef HAVE_MACH_O_NLIST_H