Skip to content

Commit

Permalink
uwsgi: fixup name clash on solaris
Browse files Browse the repository at this point in the history
Solaris defines sun to 1 which results in a compilation error:
./uwsgi.h:1646:22: error: expected identifier or ‘(’ before numeric constant struct sockaddr_un sun;

Fix #1933
  • Loading branch information
nwilkens authored and xrmx committed Jul 17, 2019
1 parent 2491b9d commit 79d14fb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions uwsgi.h
Original file line number Diff line number Diff line change
Expand Up @@ -1368,6 +1368,9 @@ enum uwsgi_range {
UWSGI_RANGE_INVALID,
};

// avoid name clashes on solaris
#undef sun

struct wsgi_request {
int fd;
struct uwsgi_header *uh;
Expand Down

0 comments on commit 79d14fb

Please sign in to comment.