diff -r 40eab743e22b -r b39f9b646d6c src/protocols/zephyr/ZLocations.c --- a/src/protocols/zephyr/ZLocations.c Mon Apr 25 00:31:24 2005 +0000 +++ b/src/protocols/zephyr/ZLocations.c Mon Apr 25 01:53:01 2005 +0000 @@ -20,7 +20,9 @@ #include "internal.h" +#ifndef WIN32 #include +#endif extern char *getenv(); extern int errno; @@ -55,11 +57,14 @@ int retval; time_t ourtime; ZNotice_t notice, retnotice; - char *bptr[3], *p; + char *bptr[3]; #ifndef X_DISPLAY_MISSING char *display; #endif +#ifndef WIN32 char *ttyp; + char *p; +#endif struct hostent *hent; short wg_port = ZGetWGPort(); @@ -95,6 +100,9 @@ mytty[sizeof(mytty)-1] = '\0'; } else { #endif +#ifdef WIN32 + strcpy(mytty,"WinGaim"); +#else ttyp = ttyname(0); if (ttyp && *ttyp) { p = strchr(ttyp + 1, '/'); @@ -102,6 +110,7 @@ } else { strcpy(mytty, "unknown"); } +#endif #ifndef X_DISPLAY_MISSING } #endif