dbghelp: Fix compile on Hurd.

This commit is contained in:
Austin English 2010-10-08 00:33:52 -07:00 committed by Alexandre Julliard
parent 7bfa513bc9
commit 95740b30b9
4 changed files with 8 additions and 3 deletions

1
configure vendored
View File

@ -5798,6 +5798,7 @@ for ac_header in \
linux/types.h \ linux/types.h \
linux/ucdrom.h \ linux/ucdrom.h \
mach-o/nlist.h \ mach-o/nlist.h \
mach-o/loader.h \
mach/mach.h \ mach/mach.h \
mach/machine.h \ mach/machine.h \
machine/cpu.h \ machine/cpu.h \

View File

@ -418,6 +418,7 @@ AC_CHECK_HEADERS(\
linux/types.h \ linux/types.h \
linux/ucdrom.h \ linux/ucdrom.h \
mach-o/nlist.h \ mach-o/nlist.h \
mach-o/loader.h \
mach/mach.h \ mach/mach.h \
mach/machine.h \ mach/machine.h \
machine/cpu.h \ machine/cpu.h \

View File

@ -26,7 +26,7 @@
#include "dbghelp_private.h" #include "dbghelp_private.h"
#ifdef __MACH__ #ifdef HAVE_MACH_O_LOADER_H
#include <assert.h> #include <assert.h>
#include <stdarg.h> #include <stdarg.h>
@ -1409,7 +1409,7 @@ struct module* macho_load_module(struct process* pcs, const WCHAR* name, unsign
return ml.macho_info.module; return ml.macho_info.module;
} }
#else /* !__MACH__ */ #else /* HAVE_MACH_O_LOADER_H */
BOOL macho_synchronize_module_list(struct process* pcs) 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; return FALSE;
} }
#endif /* __MACH__ */ #endif /* HAVE_MACH_O_LOADER_H */

View File

@ -466,6 +466,9 @@
/* Define to 1 if you have the <mach-o/dyld_images.h> header file. */ /* Define to 1 if you have the <mach-o/dyld_images.h> header file. */
#undef HAVE_MACH_O_DYLD_IMAGES_H #undef HAVE_MACH_O_DYLD_IMAGES_H
/* Define to 1 if you have the <mach-o/loader.h> header file. */
#undef HAVE_MACH_O_LOADER_H
/* Define to 1 if you have the <mach-o/nlist.h> header file. */ /* Define to 1 if you have the <mach-o/nlist.h> header file. */
#undef HAVE_MACH_O_NLIST_H #undef HAVE_MACH_O_NLIST_H