Fix for memcpy() and strcmp() being undefined.
authorBjoern D. Rasmussen <contact@bearware.dk>
Sun, 10 May 2015 05:51:29 +0000 (07:51 +0200)
committerMatt Caswell <matt@openssl.org>
Mon, 11 May 2015 11:01:51 +0000 (12:01 +0100)
clang says: "s_cb.c:958:9: error: implicitly declaring library function
'memcpy'"

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
apps/s_cb.c

index 442b33556817e789e4fe9b0d9d7f5771217b3afb..4979edfe65e03273862b9de9a67a9aaf67e8cda2 100644 (file)
 #include <stdio.h>
 #include <stdlib.h>
 #include <assert.h>
+#include <string.h> /* for memcpy() and strcmp() */
 #define USE_SOCKETS
 #include "apps.h"
 #undef USE_SOCKETS