1 | $NetBSD: patch-lib_socket.cpp,v 1.1 2020/09/17 10:05:44 jperkin Exp $
|
---|
2 |
|
---|
3 | Spell struct correctly.
|
---|
4 |
|
---|
5 | --- lib/socket.cpp.orig 2020-08-21 13:35:14.000000000 +0000
|
---|
6 | +++ lib/socket.cpp
|
---|
7 | @@ -1678,8 +1678,8 @@ int socket::write(void const* buffer, un
|
---|
8 |
|
---|
9 | #if !defined(SO_NOSIGPIPE) && !defined(FZ_WINDOWS)
|
---|
10 | // Some systems have neither. Need to block signal
|
---|
11 | - sigaction old_action;
|
---|
12 | - sigaction action = {};
|
---|
13 | + struct sigaction old_action;
|
---|
14 | + struct sigaction action = {};
|
---|
15 | action.sa_handler = SIG_IGN;
|
---|
16 | int signal_set = sigaction(SIGPIPE, &action, &old_action);
|
---|
17 | #endif
|
---|