diff options
| author | Jeffrey Altman <jaltman@secure-endpoints.com> | 2006-05-09 21:03:07 +0000 |
|---|---|---|
| committer | Jeffrey Altman <jaltman@secure-endpoints.com> | 2006-05-09 21:03:07 +0000 |
| commit | cb446fa43a63a93baff16cb7a8bd540581b367b0 (patch) | |
| tree | 5a98100530211b59aab9b231b60e675011c446a5 /src | |
| parent | df6dfd9ef7172711fbcbace356b14288722066a5 (diff) | |
| download | krb5-cb446fa43a63a93baff16cb7a8bd540581b367b0.tar.gz krb5-cb446fa43a63a93baff16cb7a8bd540581b367b0.tar.xz krb5-cb446fa43a63a93baff16cb7a8bd540581b367b0.zip | |
plugins support requires a Windows equivalent to opendir and friends
This patch simply allows krb5 to build once again on Windows.
Windows does not have opendir() and friends. Instead Win32 API
functions must be used as described in
http://msdn.microsoft.com/library/en-us/dnucmg/html/UCMGch09.asp
ticket: new
status: open
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17992 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
| -rw-r--r-- | src/util/support/plugins.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/util/support/plugins.c b/src/util/support/plugins.c index 1c6c5338d..0945d3995 100644 --- a/src/util/support/plugins.c +++ b/src/util/support/plugins.c @@ -449,7 +449,8 @@ krb5int_open_plugin_dirs (const char * const *dirnames, } } else { /* load all plugins in each directory */ - DIR *dir = NULL; +#ifndef _WIN32 + DIR *dir = NULL; if (!err) { dir = opendir(dirnames[i]); @@ -495,6 +496,10 @@ krb5int_open_plugin_dirs (const char * const *dirnames, if (dir != NULL) { closedir (dir); } } +#else + /* Until a Windows implementation of this code is implemented */ + err = ENOENT; +#endif /* _WIN32 */ } if (err == ENOENT) { |
