shithub: duke3d

Download patch

ref: 3c7d815bf1c6775f22f67100c3b9a42a2f4dba2e
parent: cb7e5f5651fe9a9b414aebe0554b8d7d0b14eb25
parent: 298efa8bb4c17576da598aa91f880088c614463a
author: Fabien <[email protected]>
date: Fri Dec 5 09:39:45 EST 2014

Merge pull request #17 from clobber/osx-buildfix

Fix compiling on OS X

--- a/Game/src/game.c
+++ b/Game/src/game.c
@@ -8078,9 +8078,11 @@
     while ((dirEntry = readdir(dir)) != NULL)
     {
         
-        
-        //if (dukeGRP_Match(dirEntry->d_name,dirEntry->d_namlen))
+#ifdef __linux__
         if (dukeGRP_Match(dirEntry->d_name, _D_EXACT_NAMLEN(dirEntry)))
+#else
+        if (dukeGRP_Match(dirEntry->d_name,dirEntry->d_namlen))
+#endif
         {
             sprintf(groupfilefullpath,"%s",dirEntry->d_name);
             return;