Merge pull request #546 from neheb/srt
libsrtp2: fix compilation with GCC 10
This commit is contained in:
commit
0b16b3aca0
2 changed files with 12 additions and 1 deletions
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=libsrtp2
|
PKG_NAME:=libsrtp2
|
||||||
PKG_VERSION:=2.2.0
|
PKG_VERSION:=2.2.0
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_URL:=https://github.com/cisco/libsrtp.git
|
PKG_SOURCE_URL:=https://github.com/cisco/libsrtp.git
|
||||||
|
|
11
libs/libsrtp2/patches/010-gcc10.patch
Normal file
11
libs/libsrtp2/patches/010-gcc10.patch
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- a/crypto/math/datatypes.c
|
||||||
|
+++ b/crypto/math/datatypes.c
|
||||||
|
@@ -79,7 +79,7 @@ int octet_get_weight(uint8_t octet)
|
||||||
|
|
||||||
|
/* the value MAX_PRINT_STRING_LEN is defined in datatypes.h */
|
||||||
|
|
||||||
|
-char bit_string[MAX_PRINT_STRING_LEN];
|
||||||
|
+static char bit_string[MAX_PRINT_STRING_LEN];
|
||||||
|
|
||||||
|
uint8_t srtp_nibble_to_hex_char(uint8_t nibble)
|
||||||
|
{
|
Loading…
Reference in a new issue