Skip to content

Commit ed8cc3d

Browse files
committed
Fix macos compilation warnings
1 parent 3df66db commit ed8cc3d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/socket.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ using socket_t = int32_t;
4242
// this is actually a nice one to have
4343
#define INVALID_SOCKET (-1)
4444
#ifdef __APPLE__
45-
#define MSG_NOSIGNAL SO_NOSIGPIPE
45+
#ifndef MSG_NOSIGNAL
46+
#define MSG_NOSIGNAL SO_NOSIGPIPE
47+
#endif
4648
#endif
4749
#endif
4850

0 commit comments

Comments
 (0)