[Gtkradiant] [Bug 985] New: Compiling Error on Darwin/OS X

gtkradiant@zerowing.idsoftware.com gtkradiant@zerowing.idsoftware.com
Sun, 07 Mar 2004 06:45:41 -0600


http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=985

           Summary: Compiling Error on Darwin/OS X
           Product: GtkRadiant
           Version: 1.4
          Platform: All
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: tools
        AssignedTo: ttimo@idsoftware.com
        ReportedBy: mkii@bossmail.de


every time I try to compile it on MacOS X/Darwin i get an error because PTHREAD_MUTEX_ADAPTIVE_NP 
is not defined.
this happens on comiling GtkRadiant/tools/quake2/common/threads.c .
noticing that the same varriable or constant (PTHREAD_MUTEX_ADAPTIVE_NP) is used in GtkRadiant/
tools/quake3/common/threads.c and does not fail to compile, I've compared the two files:

in line 422 of GtkRadiant/tools/quake2/common/threads.c

#if defined (__linux__) || defined (__APPLE__)       <-- is causing problems

#ifdef __linux__                                                   <-- works like in the quake3/common/threads.c

this fixed the problem for me

Michael "Gopher" Kwasnicki