[Cryptech-Commits] [sw/libhal] 03/08: Stop whining about POSIX strnlen() function.
git at cryptech.is
git at cryptech.is
Sun Oct 16 20:23:43 UTC 2016
This is an automated email from the git hooks/post-receive script.
sra at hactrn.net pushed a commit to branch ksng
in repository sw/libhal.
commit b89d9e30c928724fd4aac579067708cffc55f003
Author: Rob Austein <sra at hactrn.net>
AuthorDate: Fri Oct 7 20:23:10 2016 -0400
Stop whining about POSIX strnlen() function.
---
core.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/core.c b/core.c
index fed4b66..a17422a 100644
--- a/core.c
+++ b/core.c
@@ -42,6 +42,13 @@
#include "hal_internal.h"
/*
+ * POSIX function whose declaration gets lost somewhere in the twisty
+ * corridors of glibc's "Feature Test Macro" system.
+ */
+
+extern size_t strnlen(const char *, size_t);
+
+/*
* Structure of our internal database is private, in case we want to
* change representation (array, tree, list of lists, whatever) at
* some later date without having to change the public API.
More information about the Commits
mailing list