Ticket #1322: fix-kfreebsd-ftbfs-v2.patch

File fix-kfreebsd-ftbfs-v2.patch, 1.5 KB (added by Vincent Cheng, 12 years ago)
  • build/premake/premake4/src/host/premake.h

    Description: Fix FTBFS on Debian GNU/kFreeBSD
     0 A.D. FTBFS because premake doesn't recognize Debian GNU/kFreeBSD as a valid
     BSD platform, and thinks we're running a build in a Windows environment
     instead.
    Forwarded: http://trac.wildfiregames.com/ticket/1322
    Author: Vincent Cheng <Vincentc1208@gmail.com>
    Last-Update: 2012-04-17
    
    a b  
    1515#if defined(__linux__)
    1616#define PLATFORM_LINUX    (1)
    1717#define PLATFORM_STRING   "linux"
    18 #elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
     18#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD_kernel__)
    1919#define PLATFORM_BSD      (1)
    2020#define PLATFORM_STRING   "bsd"
    2121#elif defined(__APPLE__) && defined(__MACH__)
  • source/lib/sysdep/os.h

    a b  
    6666# define OS_MACOSX 0
    6767#endif
    6868// BSD
    69 #if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
     69#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD_kernel__)
    7070# define OS_BSD 1
    7171#else
    7272# define OS_BSD 0
  • build/premake/premake4.lua

    a b  
    781781        elseif os.is("bsd") then
    782782            links {
    783783                -- Needed for backtrace* on FreeBSD
    784                 "execinfo",
     784                --"execinfo",
    785785            }
    786786        end
    787787
     
    11831183        elseif os.is("bsd") then
    11841184            links {
    11851185                -- Needed for backtrace* on FreeBSD
    1186                 "execinfo",
     1186                --"execinfo",
    11871187            }
    11881188        end
    11891189