]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
res/stasis/control.c: include signal.h
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Wed, 1 May 2024 14:50:50 +0000 (16:50 +0200)
committerFabrice Fontaine <fontaine.fabrice@gmail.com>
Mon, 6 May 2024 16:08:19 +0000 (16:08 +0000)
Include signal.h to avoid the following build failure with uclibc-ng
raised since
https://github.com/asterisk/asterisk/commit/2694792e13c7f3ab1911c4a69fba0df32c544177:

stasis/control.c: In function 'exec_command_on_condition':
stasis/control.c:313:3: warning: implicit declaration of function 'pthread_kill'; did you mean 'pthread_yield'? [-Wimplicit-function-declaration]
  313 |   pthread_kill(control->control_thread, SIGURG);
      |   ^~~~~~~~~~~~
      |   pthread_yield
stasis/control.c:313:41: error: 'SIGURG' undeclared (first use in this function)
  313 |   pthread_kill(control->control_thread, SIGURG);
      |                                         ^~~~~~

cherry-pick-to: 18
cherry-pick-to: 20
cherry-pick-to: 21

Fixes: #729
res/stasis/control.c

index 360f207900030dc4a11220cc6cd2cb53b519681f..4ed0e2af1cc25b7832cbadb25f37f25d38c25bb4 100644 (file)
@@ -41,6 +41,8 @@
 #include "asterisk/musiconhold.h"
 #include "asterisk/app.h"
 
+#include <signal.h>
+
 AST_LIST_HEAD(app_control_rules, stasis_app_control_rule);
 
 /*!