shithub: duke3d

Download patch

ref: 298efa8bb4c17576da598aa91f880088c614463a
parent: cb7e5f5651fe9a9b414aebe0554b8d7d0b14eb25
author: clobber <brymaster@gmail.com>
date: Thu Dec 4 20:45:22 EST 2014

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;