diff options
author | sobomax <sobomax@FreeBSD.org> | 2008-10-21 01:26:22 +0800 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2008-10-21 01:26:22 +0800 |
commit | 0eb09aa1014978f27aa7ca0c69754b4b6a904a2a (patch) | |
tree | 43d9ffaed93ba0391985ed680e08f4de367585fd /net | |
parent | 43dd0e0243b5a9d133a660ee959b2a8c28d2991f (diff) | |
download | freebsd-ports-gnome-0eb09aa1014978f27aa7ca0c69754b4b6a904a2a.tar.gz freebsd-ports-gnome-0eb09aa1014978f27aa7ca0c69754b4b6a904a2a.tar.zst freebsd-ports-gnome-0eb09aa1014978f27aa7ca0c69754b4b6a904a2a.zip |
Make patch sutrable for integration with vendor by putting back
#ifdef that we have had no business of removing in the first place.
Don't bump PORTREVISION since it makes no difference for the compiled
package.
Diffstat (limited to 'net')
-rw-r--r-- | net/asterisk/files/patch-main::utils.c | 18 | ||||
-rw-r--r-- | net/asterisk10/files/patch-main::utils.c | 18 | ||||
-rw-r--r-- | net/asterisk14/files/patch-main::utils.c | 18 | ||||
-rw-r--r-- | net/asterisk16/files/patch-main::utils.c | 18 |
4 files changed, 28 insertions, 44 deletions
diff --git a/net/asterisk/files/patch-main::utils.c b/net/asterisk/files/patch-main::utils.c index 9bba111de434..7f2f1495d714 100644 --- a/net/asterisk/files/patch-main::utils.c +++ b/net/asterisk/files/patch-main::utils.c @@ -1,20 +1,16 @@ ---- main/utils.c.orig 2008-05-29 19:20:16.000000000 +0200 -+++ main/utils.c 2008-10-03 21:36:14.000000000 +0200 -@@ -914,8 +914,7 @@ + +$FreeBSD$ + +--- main/utils.c.orig ++++ main/utils.c +@@ -914,8 +914,8 @@ pthread_attr_init(attr); } -#ifdef __linux__ - /* On Linux, pthread_attr_init() defaults to PTHREAD_EXPLICIT_SCHED, ++#if defined(__linux__) || defined(__FreeBSD__) + /* On Linux and FreeBSD, pthread_attr_init() defaults to PTHREAD_EXPLICIT_SCHED, which is kind of useless. Change this here to PTHREAD_INHERIT_SCHED; that way the -p option to set realtime priority will propagate down to new threads by default. -@@ -924,7 +923,6 @@ - the priority afterwards with pthread_setschedparam(). */ - if ((errno = pthread_attr_setinheritsched(attr, PTHREAD_INHERIT_SCHED))) - ast_log(LOG_WARNING, "pthread_attr_setinheritsched: %s\n", strerror(errno)); --#endif - - if (!stacksize) - stacksize = AST_STACKSIZE; diff --git a/net/asterisk10/files/patch-main::utils.c b/net/asterisk10/files/patch-main::utils.c index 9bba111de434..7f2f1495d714 100644 --- a/net/asterisk10/files/patch-main::utils.c +++ b/net/asterisk10/files/patch-main::utils.c @@ -1,20 +1,16 @@ ---- main/utils.c.orig 2008-05-29 19:20:16.000000000 +0200 -+++ main/utils.c 2008-10-03 21:36:14.000000000 +0200 -@@ -914,8 +914,7 @@ + +$FreeBSD$ + +--- main/utils.c.orig ++++ main/utils.c +@@ -914,8 +914,8 @@ pthread_attr_init(attr); } -#ifdef __linux__ - /* On Linux, pthread_attr_init() defaults to PTHREAD_EXPLICIT_SCHED, ++#if defined(__linux__) || defined(__FreeBSD__) + /* On Linux and FreeBSD, pthread_attr_init() defaults to PTHREAD_EXPLICIT_SCHED, which is kind of useless. Change this here to PTHREAD_INHERIT_SCHED; that way the -p option to set realtime priority will propagate down to new threads by default. -@@ -924,7 +923,6 @@ - the priority afterwards with pthread_setschedparam(). */ - if ((errno = pthread_attr_setinheritsched(attr, PTHREAD_INHERIT_SCHED))) - ast_log(LOG_WARNING, "pthread_attr_setinheritsched: %s\n", strerror(errno)); --#endif - - if (!stacksize) - stacksize = AST_STACKSIZE; diff --git a/net/asterisk14/files/patch-main::utils.c b/net/asterisk14/files/patch-main::utils.c index 9bba111de434..7f2f1495d714 100644 --- a/net/asterisk14/files/patch-main::utils.c +++ b/net/asterisk14/files/patch-main::utils.c @@ -1,20 +1,16 @@ ---- main/utils.c.orig 2008-05-29 19:20:16.000000000 +0200 -+++ main/utils.c 2008-10-03 21:36:14.000000000 +0200 -@@ -914,8 +914,7 @@ + +$FreeBSD$ + +--- main/utils.c.orig ++++ main/utils.c +@@ -914,8 +914,8 @@ pthread_attr_init(attr); } -#ifdef __linux__ - /* On Linux, pthread_attr_init() defaults to PTHREAD_EXPLICIT_SCHED, ++#if defined(__linux__) || defined(__FreeBSD__) + /* On Linux and FreeBSD, pthread_attr_init() defaults to PTHREAD_EXPLICIT_SCHED, which is kind of useless. Change this here to PTHREAD_INHERIT_SCHED; that way the -p option to set realtime priority will propagate down to new threads by default. -@@ -924,7 +923,6 @@ - the priority afterwards with pthread_setschedparam(). */ - if ((errno = pthread_attr_setinheritsched(attr, PTHREAD_INHERIT_SCHED))) - ast_log(LOG_WARNING, "pthread_attr_setinheritsched: %s\n", strerror(errno)); --#endif - - if (!stacksize) - stacksize = AST_STACKSIZE; diff --git a/net/asterisk16/files/patch-main::utils.c b/net/asterisk16/files/patch-main::utils.c index 9bba111de434..7f2f1495d714 100644 --- a/net/asterisk16/files/patch-main::utils.c +++ b/net/asterisk16/files/patch-main::utils.c @@ -1,20 +1,16 @@ ---- main/utils.c.orig 2008-05-29 19:20:16.000000000 +0200 -+++ main/utils.c 2008-10-03 21:36:14.000000000 +0200 -@@ -914,8 +914,7 @@ + +$FreeBSD$ + +--- main/utils.c.orig ++++ main/utils.c +@@ -914,8 +914,8 @@ pthread_attr_init(attr); } -#ifdef __linux__ - /* On Linux, pthread_attr_init() defaults to PTHREAD_EXPLICIT_SCHED, ++#if defined(__linux__) || defined(__FreeBSD__) + /* On Linux and FreeBSD, pthread_attr_init() defaults to PTHREAD_EXPLICIT_SCHED, which is kind of useless. Change this here to PTHREAD_INHERIT_SCHED; that way the -p option to set realtime priority will propagate down to new threads by default. -@@ -924,7 +923,6 @@ - the priority afterwards with pthread_setschedparam(). */ - if ((errno = pthread_attr_setinheritsched(attr, PTHREAD_INHERIT_SCHED))) - ast_log(LOG_WARNING, "pthread_attr_setinheritsched: %s\n", strerror(errno)); --#endif - - if (!stacksize) - stacksize = AST_STACKSIZE; |