From 991e4a8a26e9c03faa291b522067443a8d05af7a Mon Sep 17 00:00:00 2001 From: Jon TURNEY Date: Sun, 14 Sep 2014 18:13:28 +0100 Subject: Move sethostent()/gethostent() stubs used in Windows builds to avoid implicit-function-declaration warnings Signed-off-by: Jon TURNEY Reviewed-by: Alan Coopersmith Reviewed-by: David Macek --- xhost.c | 17 ++++++++--------- 1 file 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 - -- cgit v1.2.3