summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2014-09-14 18:13:28 +0100
committerJon TURNEY <jon.turney@dronecode.org.uk>2015-05-07 19:50:22 +0100
commit991e4a8a26e9c03faa291b522067443a8d05af7a (patch)
tree79a385807857438aee249b6cc1ba51a1468d7ab3
parent06d71376aa43f9177ec1e37ed1e4d0faca655cff (diff)
Move sethostent()/gethostent() stubs used in Windows builds to avoid implicit-function-declaration warnings
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: David Macek <david.macek.0@gmail.com>
-rw-r--r--xhost.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/xhost.c b/xhost.c
index a67d136..cd25366 100644
--- a/xhost.c
+++ b/xhost.c
@@ -160,6 +160,14 @@ XFamily(int af)
}
#endif /* NEEDSOCKETS */
+#if defined(__CYGWIN__) || defined(WIN32)
+void sethostent(int x)
+{}
+
+void endhostent()
+{}
+#endif
+
int
main(int argc, char *argv[])
{
@@ -842,12 +850,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
-