diff --git a/headers/tools/cppunit/TestShell.h b/headers/tools/cppunit/TestShell.h index 2704e13364..9ceb8a29d1 100644 --- a/headers/tools/cppunit/TestShell.h +++ b/headers/tools/cppunit/TestShell.h @@ -17,7 +17,9 @@ class BDirectory; class BLocker; class BPath; -class ElfSymbolPatchGroup; +#ifndef NO_ELF_SYMBOL_PATCHING +#include +#endif // Defines SuiteFunction to be a pointer to a function that // takes no arguments and returns a pointer to a CppUnit::Test diff --git a/src/tools/cppunit/Jamfile b/src/tools/cppunit/Jamfile index ffb20ade3a..0dea61cc87 100644 --- a/src/tools/cppunit/Jamfile +++ b/src/tools/cppunit/Jamfile @@ -11,7 +11,7 @@ SEARCH_SOURCE += [ FDirName $(SUBDIR) cppunit ] ; { DEFINES += BUILDING_CPPUNIT ; - if $(OS) != BEOS || $(OSPLAT) = PPC { + if ( $(OS) != BEOS && $(OS) != HAIKU ) || $(OSPLAT) = PPC { DEFINES += NO_ELF_SYMBOL_PATCHING ; } } @@ -52,8 +52,8 @@ SharedLibrary libcppunit.so : : be [ TargetLibstdc++ ] ; -if $(OS) = BEOS && $(OSPLAT) != PPC { - LinkAgainst libcppunit.so : libelfsymbolpatcher.a ; +if ( $(OS) = BEOS || $(OS) = HAIKU ) && $(OSPLAT) != PPC { + LinkAgainst libcppunit.so : libelfsymbolpatcher.a debug ; } # To run the tests we need the cppunit library. diff --git a/src/tools/cppunit/TestShell.cpp b/src/tools/cppunit/TestShell.cpp index 61abf51f61..1cbf482dc3 100644 --- a/src/tools/cppunit/TestShell.cpp +++ b/src/tools/cppunit/TestShell.cpp @@ -22,10 +22,6 @@ #include #include -#ifndef NO_ELF_SYMBOL_PATCHING -# include -#endif - using std::cout; using std::endl; using std::set;