From 6b4e37f185a51d84e193706aa21b75aee6fd0039 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sun, 29 Mar 2020 14:01:24 +0300 Subject: [PATCH] Remove public overload of MSG_NOSIGNAL --- include/vlc_network.h | 4 ---- src/posix/filesystem.c | 3 +++ 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/include/vlc_network.h b/include/vlc_network.h index c403e9a638..9e1ccd24cc 100644 --- a/include/vlc_network.h +++ b/include/vlc_network.h @@ -56,10 +56,6 @@ # define net_Close(fd) ((void)vlc_close(fd)) #endif -#ifndef MSG_NOSIGNAL -# define MSG_NOSIGNAL 0 -#endif - /** * Creates a socket file descriptor. * diff --git a/src/posix/filesystem.c b/src/posix/filesystem.c index 89782a4bc2..60a997d9e0 100644 --- a/src/posix/filesystem.c +++ b/src/posix/filesystem.c @@ -51,6 +51,9 @@ static inline void vlc_cloexec(int fd) fcntl(fd, F_SETFD, FD_CLOEXEC | fcntl(fd, F_GETFD)); } #endif +#if !defined(MSG_NOSIGNAL) && defined(SO_NOSIGPIPE) +# define MSG_NOSIGNAL 0 +#endif int vlc_open (const char *filename, int flags, ...) { -- 2.11.4.GIT