From: Thomas Sondergaard Date: Wed, 12 Aug 2015 19:09:42 +0000 (+0200) Subject: Fix Windows regression in prof_file.c X-Git-Tag: krb5-1.14-alpha1~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4896c7e43725d2690e2adb0d49040c9bc594744b;p=thirdparty%2Fkrb5.git Fix Windows regression in prof_file.c 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 --- diff --git a/src/util/profile/prof_file.c b/src/util/profile/prof_file.c index 08c0dd0824..d774593785 100644 --- a/src/util/profile/prof_file.c +++ b/src/util/profile/prof_file.c @@ -27,6 +27,9 @@ #include #define HAVE_STAT #define stat _stat +#ifndef S_ISDIR +#define S_ISDIR(x) (((x) & S_IFMT) == S_IFDIR) +#endif #endif #include "k5-platform.h"