X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=moonshot%2Fmech_eap%2Futil_cred.c;h=0479c5954915ba61ab7ac47c8d43e7e1c932af25;hb=10392fba3dafaf32a86d7072be5297106266ff6b;hp=0cb8a76ea0711a73eba932d1e9d6d5e428d062d0;hpb=df5fb587fd49ef12931bb07ef92cc6b9d70f03a3;p=moonshot.git diff --git a/moonshot/mech_eap/util_cred.c b/moonshot/mech_eap/util_cred.c index 0cb8a76..0479c59 100644 --- a/moonshot/mech_eap/util_cred.c +++ b/moonshot/mech_eap/util_cred.c @@ -36,7 +36,9 @@ #include "gssapiP_eap.h" -#ifndef WIN32 +#ifdef WIN32 +#include +#else #include #endif @@ -129,10 +131,13 @@ readStaticIdentityFile(OM_uint32 *minor, { OM_uint32 major, tmpMinor; FILE *fp = NULL; - char pwbuf[BUFSIZ], buf[BUFSIZ]; + char buf[BUFSIZ]; char *ccacheName; - struct passwd *pw = NULL, pwd; int i = 0; +#ifndef WIN32 + struct passwd *pw = NULL, pwd; + char pwbuf[BUFSIZ]; +#endif defaultIdentity->length = 0; defaultIdentity->value = NULL;