Mark some inline functions static such that gcc (in C89 mode) doesn't
export them. Clang already doesn't export them because it assumes C99 by default. This fixes net/ortp on systems without clang.
This commit is contained in:
parent
bcd2a6a363
commit
df7680b625
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=376717
@ -4,6 +4,7 @@
|
||||
PORTNAME= libsrtp
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 1.5.0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= GHR
|
||||
|
||||
|
23
net/libsrtp/files/patch-crypto-include-sha1.h
Normal file
23
net/libsrtp/files/patch-crypto-include-sha1.h
Normal file
@ -0,0 +1,23 @@
|
||||
--- crypto/include/sha1.h.orig 2014-10-13 14:35:33 UTC
|
||||
+++ crypto/include/sha1.h
|
||||
@@ -68,17 +68,20 @@ typedef EVP_MD_CTX sha1_ctx_t;
|
||||
*
|
||||
*/
|
||||
|
||||
+static
|
||||
void inline sha1_init (sha1_ctx_t *ctx)
|
||||
{
|
||||
EVP_MD_CTX_init(ctx);
|
||||
EVP_DigestInit(ctx, EVP_sha1());
|
||||
}
|
||||
|
||||
+static
|
||||
void inline sha1_update (sha1_ctx_t *ctx, const uint8_t *M, int octets_in_msg)
|
||||
{
|
||||
EVP_DigestUpdate(ctx, M, octets_in_msg);
|
||||
}
|
||||
|
||||
+static
|
||||
void inline sha1_final (sha1_ctx_t *ctx, uint32_t *output)
|
||||
{
|
||||
unsigned int len = 0;
|
Loading…
Reference in New Issue
Block a user