make-w32
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Build problems on Windows


From: Erik Carstensen
Subject: Build problems on Windows
Date: Tue, 30 Apr 2013 10:58:05 +0200

When building master, I'm getting compiler and linker errors for _S_ISDIR not being defined. This patch seems to fix the problem:

--- a/dir.c
+++ b/dir.c
@@ -1212,7 +1212,7 @@ local_stat (const char *path, struct stat *buf)
 
       strncpy (parent, path, plen - 2);
       parent[plen - 2] = '\0';
-      if (stat (parent, buf) < 0 || !_S_ISDIR (buf->st_mode))
+      if (stat (parent, buf) < 0 || !S_ISDIR (buf->st_mode))
        return -1;
     }
 #endif


reply via email to

[Prev in Thread] Current Thread [Next in Thread]