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:03:12 +0000 (12:03 +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>
(cherry picked from commit 8f744cceff5bce8cb00a6ddd739c1bbb85c142ea)

Conflicts:
apps/s_cb.c

apps/s_cb.c

index ee57537083afd3714f14300ec9532691cbb288ca..dd3aa74e02afd45695f6a57e4db43505f7eb6720 100644 (file)
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h> /* for memcpy() and strcmp() */
 #define USE_SOCKETS
 #define NON_MAIN
 #include "apps.h"