projects
/
moonshot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more build fixes for Windows
[moonshot.git]
/
moonshot
/
mech_eap
/
util_cred.c
diff --git
a/moonshot/mech_eap/util_cred.c
b/moonshot/mech_eap/util_cred.c
index
0cb8a76
..
0479c59
100644
(file)
--- a/
moonshot/mech_eap/util_cred.c
+++ b/
moonshot/mech_eap/util_cred.c
@@
-36,7
+36,9
@@
#include "gssapiP_eap.h"
#include "gssapiP_eap.h"
-#ifndef WIN32
+#ifdef WIN32
+#include <shlobj.h>
+#else
#include <pwd.h>
#endif
#include <pwd.h>
#endif
@@
-129,10
+131,13
@@
readStaticIdentityFile(OM_uint32 *minor,
{
OM_uint32 major, tmpMinor;
FILE *fp = NULL;
{
OM_uint32 major, tmpMinor;
FILE *fp = NULL;
- char
pwbuf[BUFSIZ],
buf[BUFSIZ];
+ char buf[BUFSIZ];
char *ccacheName;
char *ccacheName;
- struct passwd *pw = NULL, pwd;
int i = 0;
int i = 0;
+#ifndef WIN32
+ struct passwd *pw = NULL, pwd;
+ char pwbuf[BUFSIZ];
+#endif
defaultIdentity->length = 0;
defaultIdentity->value = NULL;
defaultIdentity->length = 0;
defaultIdentity->value = NULL;