From 8a014108477d575156825cecdd44a955edff10b0 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Wed, 29 Jan 2014 11:39:03 -0500 Subject: [PATCH] FS-5956: fix __sputc included twice due to stdio.h inlining issue --- libs/srtp/crypto/include/crypto_math.h | 4 ++++ libs/srtp/crypto/include/datatypes.h | 1 - libs/srtp/crypto/kernel/crypto_kernel.c | 3 +++ libs/srtp/crypto/kernel/err.c | 3 +++ 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/libs/srtp/crypto/include/crypto_math.h b/libs/srtp/crypto/include/crypto_math.h index 52f083721d..5ddf4d5f42 100644 --- a/libs/srtp/crypto/include/crypto_math.h +++ b/libs/srtp/crypto/include/crypto_math.h @@ -46,6 +46,10 @@ #define MATH_H #include "datatypes.h" +#ifndef SRTP_KERNEL +# include +#endif + unsigned char v32_weight(v32_t a); diff --git a/libs/srtp/crypto/include/datatypes.h b/libs/srtp/crypto/include/datatypes.h index 6f18e9ebbf..055f4b7cac 100644 --- a/libs/srtp/crypto/include/datatypes.h +++ b/libs/srtp/crypto/include/datatypes.h @@ -53,7 +53,6 @@ #include #ifndef SRTP_KERNEL -# include # include # include # ifdef HAVE_NETINET_IN_H diff --git a/libs/srtp/crypto/kernel/crypto_kernel.c b/libs/srtp/crypto/kernel/crypto_kernel.c index 90c4a3073a..4d7ff0f284 100644 --- a/libs/srtp/crypto/kernel/crypto_kernel.c +++ b/libs/srtp/crypto/kernel/crypto_kernel.c @@ -46,6 +46,9 @@ #include "alloc.h" #include "crypto_kernel.h" +#ifndef SRTP_KERNEL +# include +#endif /* the debug module for the crypto_kernel */ diff --git a/libs/srtp/crypto/kernel/err.c b/libs/srtp/crypto/kernel/err.c index 6b00e7b877..f16bbfda91 100644 --- a/libs/srtp/crypto/kernel/err.c +++ b/libs/srtp/crypto/kernel/err.c @@ -43,6 +43,9 @@ */ #include "err.h" +#ifndef SRTP_KERNEL +# include +#endif #ifdef ERR_REPORTING_SYSLOG # ifdef HAVE_SYSLOG_H