From 7a8739e762c25a20249a4979045ce4a7383078b3 Mon Sep 17 00:00:00 2001
From: Eric Cooper <ecc@cmu.edu>
Date: Fri, 1 Nov 2013 22:41:05 -0400
Subject: [PATCH] include <string.h> in C stubs to silence gcc warnings

Signed-off-by: Eric Cooper <ecc@cmu.edu>
---
 sha1_stubs.c   | 1 +
 sha256_stubs.c | 1 +
 sha512_stubs.c | 1 +
 3 files changed, 3 insertions(+)

diff --git a/sha1_stubs.c b/sha1_stubs.c
index e0260bc..5853bb0 100644
--- a/sha1_stubs.c
+++ b/sha1_stubs.c
@@ -16,6 +16,7 @@
 #define _GNU_SOURCE
 #include <unistd.h>
 #include <fcntl.h>
+#include <string.h>
 #include "sha1.h"
 
 static inline int sha1_file(char *filename, sha1_digest *digest)
diff --git a/sha256_stubs.c b/sha256_stubs.c
index 303171d..110869e 100644
--- a/sha256_stubs.c
+++ b/sha256_stubs.c
@@ -16,6 +16,7 @@
 #define _GNU_SOURCE
 #include <unistd.h>
 #include <fcntl.h>
+#include <string.h>
 #include "sha256.h"
 
 static inline int sha256_file(char *filename, sha256_digest *digest)
diff --git a/sha512_stubs.c b/sha512_stubs.c
index 2a7a071..c1dde96 100644
--- a/sha512_stubs.c
+++ b/sha512_stubs.c
@@ -16,6 +16,7 @@
 #define _GNU_SOURCE
 #include <unistd.h>
 #include <fcntl.h>
+#include <string.h>
 #include "sha512.h"
 
 static inline int sha512_file(char *filename, sha512_digest *digest)
-- 
1.8.4.rc3

