From 67dc176ffaa8c813d6156f14ff07c4685769aef8 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Mon, 22 Sep 2008 14:05:13 -0400 Subject: ENH: a few more haiku fixes, stop the debugger from coming up for tests --- Source/kwsys/DynamicLoader.hxx.in | 2 ++ Source/kwsys/ProcessUNIX.c | 4 ++++ Source/kwsys/testProcess.c | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Source/kwsys/DynamicLoader.hxx.in b/Source/kwsys/DynamicLoader.hxx.in index 3a03515..6ac30da 100644 --- a/Source/kwsys/DynamicLoader.hxx.in +++ b/Source/kwsys/DynamicLoader.hxx.in @@ -25,6 +25,8 @@ #if MAC_OS_X_VERSION_MAX_ALLOWED < 1030 #include #endif +#elif defined(__HAIKU__) + #include #elif defined(__BEOS__) #include #endif diff --git a/Source/kwsys/ProcessUNIX.c b/Source/kwsys/ProcessUNIX.c index 32b4d9e..2f8914b 100644 --- a/Source/kwsys/ProcessUNIX.c +++ b/Source/kwsys/ProcessUNIX.c @@ -63,6 +63,10 @@ do. #include /* DIR, dirent */ #include /* isspace */ +#ifdef __HAIKU__ +#undef __BEOS__ +#endif + #if defined(KWSYS_C_HAS_PTRDIFF_T) && KWSYS_C_HAS_PTRDIFF_T typedef ptrdiff_t kwsysProcess_ptrdiff_t; #else diff --git a/Source/kwsys/testProcess.c b/Source/kwsys/testProcess.c index 9002035..5b2e148 100644 --- a/Source/kwsys/testProcess.c +++ b/Source/kwsys/testProcess.c @@ -87,7 +87,7 @@ int test4(int argc, const char* argv[]) #if defined(_WIN32) /* Avoid error diagnostic popups since we are crashing on purpose. */ SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX); -#elif defined(__BEOS__) +#elif defined(__BEOS__) || defined(__HAIKU__) /* Avoid error diagnostic popups since we are crashing on purpose. */ disable_debugger(1); #endif -- cgit v0.12