From b2b7974ba0496d9dbd8e5eb01997e9330f991fb8 Mon Sep 17 00:00:00 2001 From: Lazaros Koromilas Date: Sun, 12 Jun 2016 14:50:59 +0200 Subject: [PATCH] util/WStringAPI: wcpcpy(3) is not yet supported on OpenBSD/NetBSD Signed-off-by: Lazaros Koromilas --- src/util/WStringAPI.hxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util/WStringAPI.hxx b/src/util/WStringAPI.hxx index e020ecd7f..c5aab37b6 100644 --- a/src/util/WStringAPI.hxx +++ b/src/util/WStringAPI.hxx @@ -101,7 +101,8 @@ gcc_nonnull_all static inline wchar_t * UnsafeCopyStringP(wchar_t *dest, const wchar_t *src) { -#if defined(WIN32) || defined(__BIONIC__) +#if defined(WIN32) || defined(__BIONIC__) || defined(__OpenBSD__) || \ + defined(__NetBSD__) /* emulate wcpcpy() */ UnsafeCopyString(dest, src); return dest + StringLength(dest);