freeswitch-stable: fix implicit declaration error
authorSebastian Kemper <sebastian_ml@gmx.net>
Fri, 15 Feb 2019 20:48:07 +0000 (21:48 +0100)
committerSebastian Kemper <sebastian_ml@gmx.net>
Fri, 15 Feb 2019 20:48:10 +0000 (21:48 +0100)
commit1cdf2c2e251184ab8357ea7ced536b7b7b6c4559
tree0326b9eeaab4e6dae8d9130e6a295351757653b6
parent6c2b61946227b29ecce64ec270ff52bdc4312b04
freeswitch-stable: fix implicit declaration error

Since the update to openssl-1.1.1a the compile fails like this:

  CC       src/libfreeswitch_la-switch_rtp.lo
src/switch_rtp.c: In function 'switch_rtp_get_random':
src/switch_rtp.c:2419:2: error: implicit declaration of function 'RAND_bytes'; did you mean 'RSA_bits'? [-Werror=implicit-function-declaration]
  RAND_bytes(buf, len);
  ^~~~~~~~~~
  RSA_bits
cc1: all warnings being treated as errors
make[4]: *** [Makefile:2377: src/libfreeswitch_la-switch_rtp.lo] Error 1

This patch adds the missing include.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
net/freeswitch-stable/patches/390-switch-rtp_c-fix-implicit-declaration-of-function-RAND_bytes.patch [new file with mode: 0644]