10.4 SDK fix

git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@847 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
mark@chromium.org 2011-10-06 18:03:17 +00:00
parent c26b26c2af
commit be368a3d4a
3 changed files with 21 additions and 1 deletions

View File

@ -33,8 +33,14 @@
#if DEBUG #if DEBUG
#define PRINT_MACH_RESULT(result_, message_) \ #define PRINT_MACH_RESULT(result_, message_) \
printf(message_"%s (%d)\n", mach_error_string(result_), result_ ); printf(message_"%s (%d)\n", mach_error_string(result_), result_ );
#if defined(MAC_OS_X_VERSION_10_5) && \
MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
#define PRINT_BOOTSTRAP_RESULT(result_, message_) \ #define PRINT_BOOTSTRAP_RESULT(result_, message_) \
printf(message_"%s (%d)\n", bootstrap_strerror(result_), result_ ); printf(message_"%s (%d)\n", bootstrap_strerror(result_), result_ );
#else
#define PRINT_BOOTSTRAP_RESULT(result_, message_) \
PRINT_MACH_RESULT(result_, message_)
#endif
#else #else
#define PRINT_MACH_RESULT(result_, message_) #define PRINT_MACH_RESULT(result_, message_)
#define PRINT_BOOTSTRAP_RESULT(result_, message_) #define PRINT_BOOTSTRAP_RESULT(result_, message_)

View File

@ -31,6 +31,7 @@
#include <cstdio> #include <cstdio>
#include <iostream> #include <iostream>
#include <servers/bootstrap.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <string> #include <string>
@ -266,7 +267,13 @@ kern_return_t Inspector::ResetBootstrapPort() {
&bootstrap_parent_port); &bootstrap_parent_port);
if (kr != BOOTSTRAP_SUCCESS) { if (kr != BOOTSTRAP_SUCCESS) {
NSLog(@"ResetBootstrapPort: bootstrap_look_up failed: %s (%d)", NSLog(@"ResetBootstrapPort: bootstrap_look_up failed: %s (%d)",
bootstrap_strerror(kr), kr); #if defined(MAC_OS_X_VERSION_10_5) && \
MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
bootstrap_strerror(kr),
#else
mach_error_string(kr),
#endif
kr);
return kr; return kr;
} }

View File

@ -451,7 +451,14 @@
isa = PBXProject; isa = PBXProject;
buildConfigurationList = 1DEB923508733DC60010E9CD /* Build configuration list for PBXProject "minidump_test" */; buildConfigurationList = 1DEB923508733DC60010E9CD /* Build configuration list for PBXProject "minidump_test" */;
compatibilityVersion = "Xcode 3.2"; compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 1; hasScannedForEncodings = 1;
knownRegions = (
English,
Japanese,
French,
German,
);
mainGroup = 08FB7794FE84155DC02AAC07 /* MinidumpWriter */; mainGroup = 08FB7794FE84155DC02AAC07 /* MinidumpWriter */;
projectDirPath = ""; projectDirPath = "";
projectRoot = ""; projectRoot = "";