Fix bug #7302, make Xn.hosts work from the

Microsoft Windows install directory on Xming.
(Colin Harrison)
This commit is contained in:
Alan Hourihane 2006-08-18 09:11:48 +01:00
parent 1880defe4e
commit e1f4565be5

View File

@ -1188,7 +1188,11 @@ ResetHosts (char *display)
FreeHost (host);
}
#if defined WIN32 && defined __MINGW32__
#define ETC_HOST_PREFIX "X"
#else
#define ETC_HOST_PREFIX "/etc/X"
#endif
#define ETC_HOST_SUFFIX ".hosts"
fnamelen = strlen(ETC_HOST_PREFIX) + strlen(ETC_HOST_SUFFIX) +
strlen(display) + 1;