From: Sebastian Kemper Date: Fri, 15 Feb 2019 21:06:11 +0000 (+0100) Subject: FS-11659 [core] Fix implicit declaration of RAND_bytes X-Git-Tag: v1.8.6~1^2~103^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c447f856fbd5353e27c467c3af3842c570c1cbe7;p=thirdparty%2Ffreeswitch.git FS-11659 [core] Fix implicit declaration of RAND_bytes 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 --- diff --git a/src/include/switch_ssl.h b/src/include/switch_ssl.h index 3f4d6d696e..f31888b57b 100644 --- a/src/include/switch_ssl.h +++ b/src/include/switch_ssl.h @@ -38,6 +38,7 @@ #endif #include #include +#include #include #include #ifndef OPENSSL_NO_ENGINE