Ticket #259: 0ad-freebsd-compat.patch

File 0ad-freebsd-compat.patch, 2.5 KB (added by Dmitry Marakasov, 15 years ago)

patch

  • build/premake/src/Src/os.h

     
    1919 * but since it is the most command I use is as the default */
    2020#if defined(__linux__)
    2121#define PLATFORM_POSIX 1
    22 #elif defined(__FreeBSD) || defined(__NetBSD__) || defined(__OpenBSD__)
     22#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
    2323#define PLATFORM_POSIX 1
    2424#elif defined(__APPLE__) && defined(__MACH__)
    2525#define PLATFORM_POSIX 1
  • source/tools/atlas/AtlasScript/ScriptInterface.cpp

     
    4848#include <boost/preprocessor/punctuation/comma_if.hpp>
    4949#include <boost/preprocessor/repetition/repeat.hpp>
    5050
    51 #ifndef _WIN32
     51#if defined(__linux__) || (defined(__APPLE__) && defined(__MACH__))
    5252# include <valgrind/valgrind.h>
    5353#endif
    5454
     
    513513            wxLogWarning(_T("%s"), logMessage.c_str());
    514514        else
    515515            wxLogError(_T("%s"), logMessage.c_str());
    516 #ifndef _WIN32
     516#if defined(__linux__) || (defined(__APPLE__) && defined(__MACH__))
    517517        // When running under Valgrind, print more information in the error message
    518518        VALGRIND_PRINTF_BACKTRACE("->");
    519519#endif
  • source/ps/DllLoader.cpp

     
    8484        // open failed (mostly likely SO not found)
    8585        if (! m_Handle)
    8686        {
    87             char* error = dlerror();
     87            const char* error = dlerror();
    8888            if (error)
    8989                LOG(CLogger::Error, "", "dlopen error: %s", error);
    9090            m_Handle = HANDLE_UNAVAILABLE;
  • build/workspaces/update-workspaces.sh

     
    1 #!/bin/bash
     1#!/bin/sh
    22
    33# build/workspaces/
    44
     
    1212# build/premake/
    1313
    1414make -C src
    15 HOSTTYPE=$HOSTTYPE ./premake --outpath $workspace_dir --atlas --collada $* --target gnu
     15HOSTTYPE=$HOSTTYPE ./premake --outpath $workspace_dir --atlas --collada "$@" --target gnu
    1616
    1717# These files need to be linked; premake makefiles assume that the
    1818# lua file is accessible from the makefile directory