Package: peercast
Severity: important
Tags: patch
Hi,
peercast fails to build on GNU/kFreeBSD because MSG_NOSIGNAL is not
defined on this platform. Please find attached a patch to fix that.
Could you please apply it in the next upload?
Thanks in advance,
Aurelien
-- System Information:
Debian Release: testing/unstable
Architecture: kfreebsd-i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: GNU/kFreeBSD 5.4-1-686
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Status: in BTS
Author: aurel32
--- peercast-0.1214.orig/core/unix/usocket.cpp
+++ peercast-0.1214/core/unix/usocket.cpp
@@ -31,7 +31,6 @@
#ifdef __APPLE__
#include <netinet/in_systm.h> // for n_long definition
-#define MSG_NOSIGNAL 0 // doesn't seem to be defined under OS X
#endif
#include <netinet/ip.h>
@@ -40,6 +39,10 @@
#define INVALID_SOCKET -1
#define SOCKET_ERROR -1
+#ifndef MSG_NOSIGNAL
+#define MSG_NOSIGNAL 0
+#endif
+
// --------------------------------------------------
void UClientSocket::init()
{