Ticket #259: 0ad-freebsd-compat.patch
File 0ad-freebsd-compat.patch, 2.5 KB (added by , 15 years ago) |
---|
-
build/premake/src/Src/os.h
19 19 * but since it is the most command I use is as the default */ 20 20 #if defined(__linux__) 21 21 #define PLATFORM_POSIX 1 22 #elif defined(__FreeBSD ) || defined(__NetBSD__) || defined(__OpenBSD__)22 #elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) 23 23 #define PLATFORM_POSIX 1 24 24 #elif defined(__APPLE__) && defined(__MACH__) 25 25 #define PLATFORM_POSIX 1 -
source/tools/atlas/AtlasScript/ScriptInterface.cpp
48 48 #include <boost/preprocessor/punctuation/comma_if.hpp> 49 49 #include <boost/preprocessor/repetition/repeat.hpp> 50 50 51 #if ndef _WIN3251 #if defined(__linux__) || (defined(__APPLE__) && defined(__MACH__)) 52 52 # include <valgrind/valgrind.h> 53 53 #endif 54 54 … … 513 513 wxLogWarning(_T("%s"), logMessage.c_str()); 514 514 else 515 515 wxLogError(_T("%s"), logMessage.c_str()); 516 #if ndef _WIN32516 #if defined(__linux__) || (defined(__APPLE__) && defined(__MACH__)) 517 517 // When running under Valgrind, print more information in the error message 518 518 VALGRIND_PRINTF_BACKTRACE("->"); 519 519 #endif -
source/ps/DllLoader.cpp
84 84 // open failed (mostly likely SO not found) 85 85 if (! m_Handle) 86 86 { 87 c har* error = dlerror();87 const char* error = dlerror(); 88 88 if (error) 89 89 LOG(CLogger::Error, "", "dlopen error: %s", error); 90 90 m_Handle = HANDLE_UNAVAILABLE; -
build/workspaces/update-workspaces.sh
1 #!/bin/ bash1 #!/bin/sh 2 2 3 3 # build/workspaces/ 4 4 … … 12 12 # build/premake/ 13 13 14 14 make -C src 15 HOSTTYPE=$HOSTTYPE ./premake --outpath $workspace_dir --atlas --collada $*--target gnu15 HOSTTYPE=$HOSTTYPE ./premake --outpath $workspace_dir --atlas --collada "$@" --target gnu 16 16 17 17 # These files need to be linked; premake makefiles assume that the 18 18 # lua file is accessible from the makefile directory