about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2006-01-06 11:41:47 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2006-01-06 11:41:47 +0000
commitd8a851a9a8b29ebf22b2746299697220e200eaa4 (patch)
tree41586749750a37eae8e450242f3004c9bd3b09a4 /Src
parentb71a632d2f0100e46963faa64684456e49bc1791 (diff)
downloadzsh-d8a851a9a8b29ebf22b2746299697220e200eaa4.tar.gz
zsh-d8a851a9a8b29ebf22b2746299697220e200eaa4.tar.xz
zsh-d8a851a9a8b29ebf22b2746299697220e200eaa4.zip
22123: probe for wcswidth() and assume 1 if not found
Diffstat (limited to 'Src')
-rw-r--r--Src/system.h4
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>