cygwin does not support sethostname

This commit is contained in:
Unbit
2013-12-26 18:00:59 +01:00
parent d08d08f39b
commit a60bb56b18
+4
View File
@@ -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
}