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

File fix-kfreebsd-ftbfs-v1.patch, 786 bytes (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: not-yet
    Author: Vincent Cheng <Vincentc1208@gmail.com>
    Last-Update: 2012-04-16
    
    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(__GLIBC__)
    1919#define PLATFORM_BSD      (1)
    2020#define PLATFORM_STRING   "bsd"
    2121#elif defined(__APPLE__) && defined(__MACH__)