[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] cmocka: include strings.h for strcasecmp


Signed-off-by: Emil Velikov <emil.l.velikov@xxxxxxxxx>
---

One can also move this into cmocka_private.h - I'm fine with either 
apporach.

Unrelated sidenote: DefineCompilerFlags.cmake looks a bit strange - 
explicit -fPIC over set_target(... POSITION_INDEPENDENT_CODE ON), 
omitting GCC/Clang flags on WIN32 platforms - surely one can use those 
compilers in there ?

Cheers,
Emil

 src/cmocka.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/cmocka.c b/src/cmocka.c
index fc83b57..2a63f82 100644
--- a/src/cmocka.c
+++ b/src/cmocka.c
@@ -31,6 +31,10 @@
 #include <signal.h>
 #endif
 
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+
 #include <stdint.h>
 #include <setjmp.h>
 #include <stdarg.h>
-- 
2.6.2



Follow-Ups:
Re: [PATCH] cmocka: include strings.h for strcasecmpEmil Velikov <emil.l.velikov@xxxxxxxxx>