Fix trouble with wint_t being redefined with NetBSD.
authorDavid Griffith <dave@661.org>
Mon, 15 Jul 2019 04:52:56 +0000 (21:52 -0700)
committerDavid Griffith <dave@661.org>
Mon, 15 Jul 2019 04:52:56 +0000 (21:52 -0700)
src/curses/ux_input.c

index 9a23891dfe15ab019529dd52460dec6fd66f8fb8..22ceb40c00dfd0afa4423274d5951e458a417016 100644 (file)
 #include <sys/time.h>
 #include <sys/select.h>
 
+#ifdef USE_UTF8
+#include <wchar.h>
+#else
+#ifdef wint_t
+typedef unsigned int wint_t;
+#endif
+#endif
+
 #ifdef USE_NCURSES_H
 #include <ncurses.h>
 #else
@@ -71,9 +79,6 @@ extern bool is_terminator (zchar);
 extern void read_string (int, zchar *);
 extern int completion (const zchar *, zchar *);
 
-#ifndef _WINT_T
-typedef unsigned int wint_t;
-#endif
 
 /*
  * unix_set_global_timeout