summaryrefslogtreecommitdiff
path: root/os/access.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2006-08-21 13:07:41 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2006-08-21 13:07:41 -0700
commit05541259bdb0dfaab015a01caa3722b7a1b782e2 (patch)
tree601293b594050a1d30ae5fbca2ececb7fd7cc936 /os/access.c
parentc2535f67923bde0bfb0e72363467110806e2f40f (diff)
parenta1ac0440bba690368aa4226468ce571be1a09d95 (diff)
Merge branch 'master' of git+ssh://git.freedesktop.org/git/xorg/xserver into XACE-modular
Diffstat (limited to 'os/access.c')
-rw-r--r--os/access.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/os/access.c b/os/access.c
index 8e4bb7a49..cdb17589c 100644
--- a/os/access.c
+++ b/os/access.c
@@ -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;