From a60bb56b18bee98ddced066c6b98e459f4271aec Mon Sep 17 00:00:00 2001 From: Unbit Date: Thu, 26 Dec 2013 18:00:59 +0100 Subject: [PATCH] cygwin does not support sethostname --- core/hooks.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/hooks.c b/core/hooks.c index b8fa7b6a..907b4e31 100644 --- a/core/hooks.c +++ b/core/hooks.c @@ -343,7 +343,11 @@ static int uwsgi_hook_chown2(char *arg) { static int uwsgi_hook_hostname(char *arg) { +#ifdef __CYGWIN__ + return -1; +#else return sethostname(arg, strlen(arg)); +#endif }