[Pkg-ocaml-maint-commits] [ocaml-sha] 07/09: patch stubs to include <string.h>
Eric Cooper
ecc at cmu.edu
Sat Nov 2 16:52:42 UTC 2013
This is an automated email from the git hooks/post-receive script.
ecc-guest pushed a commit to branch master
in repository ocaml-sha.
commit ba56c58a02df2a489c8c4e67f9e9e59c75658680
Author: Eric Cooper <ecc at cmu.edu>
Date: Fri Nov 1 22:45:31 2013 -0400
patch stubs to include <string.h>
---
...ring.h-in-C-stubs-to-silence-gcc-warnings.patch | 51 ++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 52 insertions(+)
diff --git a/debian/patches/0005-include-string.h-in-C-stubs-to-silence-gcc-warnings.patch b/debian/patches/0005-include-string.h-in-C-stubs-to-silence-gcc-warnings.patch
new file mode 100644
index 0000000..a401b02
--- /dev/null
+++ b/debian/patches/0005-include-string.h-in-C-stubs-to-silence-gcc-warnings.patch
@@ -0,0 +1,51 @@
+From 7a8739e762c25a20249a4979045ce4a7383078b3 Mon Sep 17 00:00:00 2001
+From: Eric Cooper <ecc at 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 at 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
+
diff --git a/debian/patches/series b/debian/patches/series
index a3b2a70..6a13560 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@
0002-compile-C-files-with-fPIC.patch
0003-use-internal-ccopts-variable.patch
0004-add-all-byte-and-install-byte-targets.patch
+0005-include-string.h-in-C-stubs-to-silence-gcc-warnings.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ocaml-maint/packages/ocaml-sha.git
More information about the Pkg-ocaml-maint-commits
mailing list