aboutsummaryrefslogtreecommitdiff
path: root/core.c
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2016-10-07 20:23:10 -0400
committerRob Austein <sra@hactrn.net>2016-10-07 20:23:10 -0400
commitb89d9e30c928724fd4aac579067708cffc55f003 (patch)
tree84d6e62a636e964465b131fee7c55ca543c1c08f /core.c
parentdb32574d6c85bb48a2f01d80eec6e241152704ff (diff)
Stop whining about POSIX strnlen() function.
Diffstat (limited to 'core.c')
-rw-r--r--core.c7
1 files changed, 7 insertions, 0 deletions
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.