summaryrefslogtreecommitdiff
path: root/src/gui/curses/gui-curses-term.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/curses/gui-curses-term.c')
-rw-r--r--src/gui/curses/gui-curses-term.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/curses/gui-curses-term.c b/src/gui/curses/gui-curses-term.c
index 2287278b7..c942231f6 100644
--- a/src/gui/curses/gui-curses-term.c
+++ b/src/gui/curses/gui-curses-term.c
@@ -24,7 +24,11 @@
#endif
#ifdef HAVE_NCURSESW_CURSES_H
+#ifdef __sun
+#include <ncurses/term.h>
+#else
#include <ncursesw/term.h>
+#endif
#else
#include <term.h>
#endif