summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2016-01-31 15:27:53 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2016-01-31 15:27:53 +0100
commitfa635cfc925a95fe5c84569b043866dc3482ce90 (patch)
tree02e4a9a3024730b4387783b45ae66fdbe42477ac /util.h
parent4b3f099a01635e99e1112c56906ae337c1bb0ba9 (diff)
always add strlcpy, strlcat, remove COMPAT #ifdef
The overhead for OpenBSD is minimal. I will periodically sync from OpenBSD libc.
Diffstat (limited to 'util.h')
-rw-r--r--util.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/util.h b/util.h
index 2e55460..29ba1ef 100644
--- a/util.h
+++ b/util.h
@@ -1,4 +1,7 @@
-#include "compat.h"
+#undef strlcat
+size_t strlcat(char *, const char *, size_t);
+#undef strlcpy
+size_t strlcpy(char *, const char *, size_t);
#define ISUTF8(c) (((c) & 0xc0) != 0x80)
#define LEN(x) (sizeof (x) / sizeof *(x))