Changeset View
Changeset View
Standalone View
Standalone View
net/tigervnc-server/files/patch-unix_vncserver_vncsession.c
diff --git unix/vncserver/vncsession.c unix/vncserver/vncsession.c | --- unix/vncserver/vncsession.c.orig 2020-09-08 12:16:08 UTC | ||||
index 3e0c98f0..cdac9d1a 100644 | |||||
--- unix/vncserver/vncsession.c | |||||
+++ unix/vncserver/vncsession.c | +++ unix/vncserver/vncsession.c | ||||
@@ -339,7 +339,7 @@ static void | @@ -339,7 +339,7 @@ static void | ||||
redir_stdio(const char *homedir, const char *display) | redir_stdio(const char *homedir, const char *display) | ||||
{ | { | ||||
int fd; | int fd; | ||||
- char hostname[HOST_NAME_MAX+1]; | - char hostname[HOST_NAME_MAX+1]; | ||||
+ char hostname[_SC_HOST_NAME_MAX+1]; | + char hostname[_POSIX_HOST_NAME_MAX+1]; | ||||
char logfile[PATH_MAX]; | char logfile[PATH_MAX]; | ||||
fd = open("/dev/null", O_RDONLY); | fd = open("/dev/null", O_RDONLY); |