pkgsrc/net/DarwinStreamingServer/patches/patch-an
joerg d8eebf4c22 Fetch is no longer interactive. Allow building on 64bit platforms, even
if it is likely not going to run. Fix CONF_FILES.
2013-03-24 16:51:07 +00:00

56 lines
2.6 KiB
Text

$NetBSD: patch-an,v 1.3 2013/03/24 16:51:08 joerg Exp $
--- MP3Broadcaster/BroadcasterMain.cpp.orig 2005-03-11 23:24:54.000000000 +0000
+++ MP3Broadcaster/BroadcasterMain.cpp
@@ -216,7 +216,7 @@ static void RegisterEventHandlers()
struct sigaction act;
-#if defined(sun) || defined(i386) || defined(__MacOSX__) || defined(__sgi__) || defined(__osf__) || defined(__hpux__)
+#if defined(sun) || defined(i386) || defined(__MacOSX__) || defined(__sgi__) || defined(__osf__) || defined(__hpux__) || defined(__NetBSD__) || defined(__DragonFly__)
sigemptyset(&act.sa_mask);
act.sa_flags = 0;
act.sa_handler = (void(*)(int))&SignalEventHandler;
@@ -229,14 +229,14 @@ struct sigaction act;
if ( ::signal(SIGTERM, SIG_IGN) != SIG_IGN)
{ // from kill...
if ( ::sigaction(SIGTERM, &act, NULL) != 0 )
- { qtss_printf( "- PlaylistBroadcaster: System error (%i).\n", (int)SIG_ERR );
+ { qtss_printf( "- PlaylistBroadcaster: System error (%i).\n", (int)(uintptr_t)SIG_ERR );
}
}
if ( ::signal(SIGINT, SIG_IGN) != SIG_IGN)
{ // ^C signal
if ( ::sigaction(SIGINT, &act, NULL) != 0 )
- { qtss_printf( "- PlaylistBroadcaster: System error (%i).\n", (int)SIG_ERR );
+ { qtss_printf( "- PlaylistBroadcaster: System error (%i).\n", (int)(uintptr_t)SIG_ERR );
}
}
@@ -244,7 +244,7 @@ struct sigaction act;
if ( ::signal(SIGPIPE, SIG_IGN) != SIG_IGN)
{ // broken pipe probably from a failed RTSP session (the server went down?)
if ( ::sigaction(SIGPIPE, &act, NULL) != 0 )
- { qtss_printf( "- PlaylistBroadcaster: System error (%i).\n", (int)SIG_ERR );
+ { qtss_printf( "- PlaylistBroadcaster: System error (%i).\n", (int)(uintptr_t)SIG_ERR );
}
}
@@ -252,7 +252,7 @@ struct sigaction act;
if ( ::signal(SIGHUP, SIG_IGN) != SIG_IGN)
{ // catch any SIGHUP
if ( ::sigaction(SIGHUP, &act, NULL) != 0)
- { qtss_printf( "- PlaylistBroadcaster: System error (%i).\n", (int)SIG_ERR );
+ { qtss_printf( "- PlaylistBroadcaster: System error (%i).\n", (int)(uintptr_t)SIG_ERR );
}
}
@@ -260,7 +260,7 @@ struct sigaction act;
if ( ::signal(SIGALRM, SIG_IGN) != SIG_IGN)
{ // catch any SIGALRM
if ( ::sigaction(SIGALRM, &act, NULL) != 0)
- { qtss_printf( "- PlaylistBroadcaster: System error (%i).\n", (int)SIG_ERR );
+ { qtss_printf( "- PlaylistBroadcaster: System error (%i).\n", (int)(uintptr_t)SIG_ERR );
}
}