Skip to content

Commit de10ddd

Browse files
authored
Fix typo in BSD sockets code commit (#299)
The typo inverted the logic.
1 parent 955e4d6 commit de10ddd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/common/socket.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ void psock_init() {
7373

7474
PSOCK psock_create() {
7575
PSOCK s = socket(AF_INET,SOCK_STREAM,0);
76-
# if defined(OS_MAC) || (defined(OS_BSD) && !defined(SO_NOSIGPIPE))
76+
# if defined(OS_MAC) || (defined(OS_BSD) && defined(SO_NOSIGPIPE))
7777
if( s != INVALID_SOCKET )
7878
setsockopt(s,SOL_SOCKET,SO_NOSIGPIPE,NULL,0);
7979
# endif

0 commit comments

Comments
 (0)