libupnp/libupnp.patch

changeset 632
804f172af162
parent 70
1b746d93c8f0
     1.1 --- a/libupnp/libupnp.patch	Tue Aug 28 19:02:05 2012 +0200
     1.2 +++ b/libupnp/libupnp.patch	Tue Aug 28 19:02:10 2012 +0200
     1.3 @@ -1,48 +1,48 @@
     1.4 -Index: upnp/sample/tvctrlpt/linux/upnp_tv_ctrlpt_main.c
     1.5 -diff -Nau upnp/sample/tvctrlpt/linux/upnp_tv_ctrlpt_main.c.orig upnp/sample/tvctrlpt/linux/upnp_tv_ctrlpt_main.c
     1.6 ---- upnp/sample/tvctrlpt/linux/upnp_tv_ctrlpt_main.c.orig	2008-03-22 17:48:13.000000000 +0100
     1.7 -+++ upnp/sample/tvctrlpt/linux/upnp_tv_ctrlpt_main.c	2009-01-12 16:05:10.847325711 +0100
     1.8 -@@ -429,7 +429,11 @@
     1.9 -      */
    1.10 -     sigemptyset( &sigs_to_catch );
    1.11 -     sigaddset( &sigs_to_catch, SIGINT );
    1.12 +Index: upnp/sample/linux/tv_ctrlpt_main.c
    1.13 +diff -Nau upnp/sample/linux/tv_ctrlpt_main.c.orig upnp/sample/linux/tv_ctrlpt_main.c
    1.14 +--- upnp/sample/linux/tv_ctrlpt_main.c.orig	2008-03-22 17:48:13.000000000 +0100
    1.15 ++++ upnp/sample/linux/tv_ctrlpt_main.c	2009-01-12 16:05:10.847325711 +0100
    1.16 +@@ -60,7 +60,11 @@
    1.17 + 	/* Catch Ctrl-C and properly shutdown */
    1.18 + 	sigemptyset(&sigs_to_catch);
    1.19 + 	sigaddset(&sigs_to_catch, SIGINT);
    1.20  +#if (defined(sun) && defined(__svr4__))
    1.21 -+    sigwait( &sigs_to_catch );
    1.22 ++	sigwait(&sigs_to_catch);
    1.23  +#else
    1.24 -     sigwait( &sigs_to_catch, &sig );
    1.25 + 	sigwait(&sigs_to_catch, &sig);
    1.26  +#endif
    1.27 - 
    1.28 -     SampleUtil_Print( "Shutting down on signal %d...", sig );
    1.29 - #else
    1.30 -Index: upnp/sample/tvcombo/linux/upnp_tv_combo_main.c
    1.31 -diff -Nau upnp/sample/tvcombo/linux/upnp_tv_combo_main.c.orig upnp/sample/tvcombo/linux/upnp_tv_combo_main.c
    1.32 ---- upnp/sample/tvcombo/linux/upnp_tv_combo_main.c.orig	2009-01-12 16:12:00.406762331 +0100
    1.33 -+++ upnp/sample/tvcombo/linux/upnp_tv_combo_main.c	2009-01-12 16:14:23.401611284 +0100
    1.34 -@@ -477,7 +477,11 @@
    1.35 -      */
    1.36 -     sigemptyset( &sigs_to_catch );
    1.37 -     sigaddset( &sigs_to_catch, SIGINT );
    1.38 + 	SampleUtil_Print("Shutting down on signal %d...\n", sig);
    1.39 + #endif
    1.40 + 	rc = TvCtrlPointStop();
    1.41 +Index: upnp/sample/linux/tv_combo_main.c
    1.42 +diff -Nau upnp/sample/linux/tv_combo_main.c.orig upnp/sample/linux/tv_combo_main.c
    1.43 +--- upnp/sample/linux/tv_combo_main.c.orig	2009-01-12 16:12:00.406762331 +0100
    1.44 ++++ upnp/sample/linux/tv_combo_main.c	2009-01-12 16:14:23.401611284 +0100
    1.45 +@@ -61,7 +61,11 @@
    1.46 + 	/* Catch Ctrl-C and properly shutdown */
    1.47 + 	sigemptyset(&sigs_to_catch);
    1.48 + 	sigaddset(&sigs_to_catch, SIGINT);
    1.49  +#if (defined(sun) && defined(__svr4__))
    1.50 -+    sigwait( &sigs_to_catch );
    1.51 ++	sigwait(&sigs_to_catch);
    1.52  +#else
    1.53 -     sigwait( &sigs_to_catch, &sig );
    1.54 + 	sigwait(&sigs_to_catch, &sig);
    1.55  +#endif
    1.56 - 
    1.57 -     SampleUtil_Print( "Shutting down on signal %d...\n", sig );
    1.58 - #else
    1.59 -Index: upnp/sample/tvdevice/linux/upnp_tv_device_main.c
    1.60 -diff -Nau upnp/sample/tvdevice/linux/upnp_tv_device_main.c.orig upnp/sample/tvdevice/linux/upnp_tv_device_main.c
    1.61 ---- upnp/sample/tvdevice/linux/upnp_tv_device_main.c.orig	2008-03-22 18:04:30.000000000 +0100
    1.62 -+++ upnp/sample/tvdevice/linux/upnp_tv_device_main.c	2009-01-12 16:19:03.504059810 +0100
    1.63 -@@ -184,7 +184,11 @@
    1.64 -      */
    1.65 -     sigemptyset( &sigs_to_catch );
    1.66 -     sigaddset( &sigs_to_catch, SIGINT );
    1.67 + 	SampleUtil_Print("Shutting down on signal %d...\n", sig);
    1.68 + #endif
    1.69 + 	TvDeviceStop();
    1.70 +Index: upnp/sample/linux/tv_device_main.c
    1.71 +diff -Nau upnp/sample/linux/tv_device_main.c.orig upnp/sample/linux/tv_device_main.c
    1.72 +--- upnp/sample/linux/tv_device_main.c.orig	2008-03-22 18:04:30.000000000 +0100
    1.73 ++++ upnp/sample/linux/tv_device_main.c	2009-01-12 16:19:03.504059810 +0100
    1.74 +@@ -59,7 +59,11 @@
    1.75 + 	/* Catch Ctrl-C and properly shutdown */
    1.76 + 	sigemptyset(&sigs_to_catch);
    1.77 + 	sigaddset(&sigs_to_catch, SIGINT);
    1.78  +#if (defined(sun) && defined(__svr4__))
    1.79 -+    sigwait( &sigs_to_catch );
    1.80 ++	sigwait(&sigs_to_catch);
    1.81  +#else
    1.82 -     sigwait( &sigs_to_catch, &sig );
    1.83 + 	sigwait(&sigs_to_catch, &sig);
    1.84  +#endif
    1.85 - 
    1.86 -     SampleUtil_Print( "Shutting down on signal %d...\n", sig );
    1.87 - #else
    1.88 + 	SampleUtil_Print("Shutting down on signal %d...\n", sig);
    1.89 + #endif
    1.90 + 	rc = TvDeviceStop();

mercurial