aboutsummaryrefslogtreecommitdiff
path: root/apps/xhost/xhost.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/xhost/xhost.c')
-rwxr-xr-x[-rw-r--r--]apps/xhost/xhost.c23
1 files changed, 14 insertions, 9 deletions
diff --git a/apps/xhost/xhost.c b/apps/xhost/xhost.c
index a67d1361f..44d85a09e 100644..100755
--- a/apps/xhost/xhost.c
+++ b/apps/xhost/xhost.c
@@ -92,6 +92,10 @@ X Window System is a trademark of The Open Group.
#include <arpa/inet.h>
#endif
+#ifdef _MSC_VER
+#define _X_UNUSED
+#endif
+
#ifdef SECURE_RPC
#include <pwd.h>
@@ -130,6 +134,16 @@ static volatile int nameserver_timedout;
static char *ProgramName;
+#ifdef WIN32
+#define alarm(arg)
+
+void sethostent(int x)
+{}
+
+void endhostent()
+{}
+#endif
+
#ifdef NEEDSOCKETS
static int
XFamily(int af)
@@ -842,12 +856,3 @@ local_xerror(Display *dpy, XErrorEvent *rep)
XmuPrintDefaultErrorMessage (dpy, rep, stderr);
return 0;
}
-
-#if defined(__CYGWIN__) || defined(WIN32)
-void sethostent(int x)
-{}
-
-void endhostent()
-{}
-#endif
-