projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b145f68
)
Implement S_ISDIR from S_IFMT or _S_IFMT if necessary (e.g., on Windows)
author
Ken Raeburn
<raeburn@mit.edu>
Thu, 28 Jun 2007 00:08:21 +0000
(
00:08
+0000)
committer
Ken Raeburn
<raeburn@mit.edu>
Thu, 28 Jun 2007 00:08:21 +0000
(
00:08
+0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19645
dc483132
-0cff-0310-8789-
dd5450dbe970
src/util/support/mkstemp.c
patch
|
blob
|
history
diff --git
a/src/util/support/mkstemp.c
b/src/util/support/mkstemp.c
index b671c6b566b5c90c06621c85092e233470c0495b..b68aa4dbd36bb41cb3383e71d19a3eb3af80c388 100644
(file)
--- a/
src/util/support/mkstemp.c
+++ b/
src/util/support/mkstemp.c
@@
-51,6
+51,16
@@
static char sccsid[] = "@(#)mktemp.c 8.1 (Berkeley) 6/4/93";
#define O_BINARY 0
#endif
+#if !defined S_ISDIR
+#if defined S_IFMT
+#define S_ISDIR(MODE) (((MODE) & S_IFMT) == S_IFDIR)
+#elif defined _S_IFMT
+#define S_ISDIR(MODE) (((MODE) & _S_IFMT) == _S_IFDIR)
+#else
+/* Hope that there's a S_ISDIR function defined. */
+#endif
+#endif
+
static int _gettemp(char *, int *);
int mkstemp(path)