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:
Azat Khuzhin 2019-05-25 23:41:38 +03:00
parent 3da21a9491
commit e2790a7f47
No known key found for this signature in database
GPG Key ID: B86086848EF8686D

4
http.c
View File

@ -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