summaryrefslogtreecommitdiff
path: root/src/common/utf8.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/utf8.c')
-rw-r--r--src/common/utf8.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/utf8.c b/src/common/utf8.c
index 11aa60808..9379082e4 100644
--- a/src/common/utf8.c
+++ b/src/common/utf8.c
@@ -27,7 +27,12 @@
#include <stdlib.h>
#include <string.h>
#define __USE_XOPEN
+
+#if defined(__OpenBSD__)
+#include <utf8/wchar.h>
+#else
#include <wchar.h>
+#endif
#include "weechat.h"
#include "utf8.h"