[vlc-commits] Remove public overload of MSG_NOSIGNAL
Rémi Denis-Courmont
git at videolan.org
Sun Mar 29 16:07:44 CEST 2020
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Mar 29 14:01:24 2020 +0300| [6b4e37f185a51d84e193706aa21b75aee6fd0039] | committer: Rémi Denis-Courmont
Remove public overload of MSG_NOSIGNAL
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6b4e37f185a51d84e193706aa21b75aee6fd0039
---
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, ...)
{
More information about the vlc-commits
mailing list