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);