aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-04-09 02:49:06 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-04-09 02:49:06 +0000
commit2732e56a5264c6a9b43b9dc38ae1a66327b85d59 (patch)
treeb19bb4783ad399be73284dfe6cd667f459d78ea0 /include
parent9af220fc48bfd979b6e75bcb3d722d9f00bb829f (diff)
Don't check for error when lowering priority (according to the manpage, it should never happen anyway). It might could happen, though, if another thread messed with the priority, so safeguard against that (reported via -dev list).
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@60849 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r--include/asterisk.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asterisk.h b/include/asterisk.h
index 68f17ea5f..b8ea85038 100644
--- a/include/asterisk.h
+++ b/include/asterisk.h
@@ -21,6 +21,8 @@
#define DEFAULT_LANGUAGE "en"
#define AST_CONFIG_MAX_PATH 255
+#define setpriority __PLEASE_USE_ast_set_priority_INSTEAD_OF_setpriority__
+#define sched_setscheduler __PLEASE_USE_ast_set_priority_INSTEAD_OF_sched_setscheduler__
/* provided in asterisk.c */
extern char ast_config_AST_CONFIG_DIR[AST_CONFIG_MAX_PATH];