mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-19 09:15:34 -04:00
http: do not name variable "sun" since this breaks solaris builds
-bash-3.2$ /opt/csw/bin/gcc -xc /dev/null -dM -E | grep '#define sun' #define sun 1 (cherry picked from commit 1c573ab3a9037c560981ea325170ca6044c2dff6)
This commit is contained in:
parent
3da21a9491
commit
e2790a7f47
4
http.c
4
http.c
@ -4219,8 +4219,8 @@ evhttp_get_request_connection(
|
||||
|
||||
#ifdef EVENT__HAVE_STRUCT_SOCKADDR_UN
|
||||
if (sa->sa_family == AF_UNIX) {
|
||||
struct sockaddr_un *sun = (struct sockaddr_un *)sa;
|
||||
sun->sun_path[0] = '\0';
|
||||
struct sockaddr_un *sa_un = (struct sockaddr_un *)sa;
|
||||
sa_un->sun_path[0] = '\0';
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user