X-Git-Url: http://www.project-moonshot.org/gitweb/?p=mech_eap.orig;a=blobdiff_plain;f=mech_eap%2Futil_cred.c;h=0479c5954915ba61ab7ac47c8d43e7e1c932af25;hp=0cb8a76ea0711a73eba932d1e9d6d5e428d062d0;hb=865669ae058c6a54ad011ccf5d20a1578a37deae;hpb=53af2e64832e8521bc5760dd23b68ce26725e624 diff --git a/mech_eap/util_cred.c b/mech_eap/util_cred.c index 0cb8a76..0479c59 100644 --- a/mech_eap/util_cred.c +++ b/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;