]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res/stasis/control.c: include signal.h
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Wed, 1 May 2024 14:50:50 +0000 (16:50 +0200)
committerAsterisk Development Team <asteriskteam@digium.com>
Thu, 9 May 2024 13:47:40 +0000 (13:47 +0000)
commit9efb9c7d45c1bef544de96d276f830f75a1b42e3
tree7874720f0b1666a87095ed58a72aac6033d93d08
parentfc35e92ece7382c648dfa0488c29ea8b51f88e2a
res/stasis/control.c: include signal.h

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
(cherry picked from commit 044f3e85ba3a3b7fe844f07d9153c4e52ddf9a22)
res/stasis/control.c