]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Fix Windows regression in prof_file.c
authorThomas Sondergaard <thomas.sondergaard@karoshealth.com>
Wed, 12 Aug 2015 19:09:42 +0000 (21:09 +0200)
committerGreg Hudson <ghudson@mit.edu>
Thu, 27 Aug 2015 16:28:44 +0000 (12:28 -0400)
Commit 13bfcda8de68 (Add support for directories in profile paths)
introduced use of S_ISDIR, but this macro is not defined by Windows
SDK stat.h.

ticket: 8030

src/util/profile/prof_file.c

index 08c0dd0824a2e800fd81288e1a3e6937068d6c75..d774593785a730dc823ae0a9fd9ceae871b54526 100644 (file)
@@ -27,6 +27,9 @@
 #include <io.h>
 #define HAVE_STAT
 #define stat _stat
+#ifndef S_ISDIR
+#define S_ISDIR(x) (((x) & S_IFMT) == S_IFDIR)
+#endif
 #endif
 
 #include "k5-platform.h"