diff options
Diffstat (limited to 'Src/system.h')
-rw-r--r-- | Src/system.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Src/system.h b/Src/system.h index 33804e71a..ccb12e0c0 100644 --- a/Src/system.h +++ b/Src/system.h @@ -703,6 +703,10 @@ extern short ospeed; */ # include <wchar.h> # include <wctype.h> +#ifndef HAVE_WCSWIDTH +/* wcswidth is missing on OpenBSD: assume single-width characters */ +#define wcswidth(x, y) (1) +#endif #endif #ifdef HAVE_LANGINFO_H # include <langinfo.h> |