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 }