summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/curses/CMakeLists.txt4
-rw-r--r--src/gui/curses/gui-curses-term.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/curses/CMakeLists.txt b/src/gui/curses/CMakeLists.txt
index a8927bce4..eaba7d481 100644
--- a/src/gui/curses/CMakeLists.txt
+++ b/src/gui/curses/CMakeLists.txt
@@ -53,6 +53,10 @@ IF(${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
ENDIF(HAVE_BACKTRACE)
ENDIF(${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
+IF(${CMAKE_SYSTEM_NAME} STREQUAL "SunOS")
+ LIST(APPEND EXTRA_LIBS "socket" "nsl")
+ENDIF(${CMAKE_SYSTEM_NAME} STREQUAL "SunOS")
+
LIST(APPEND EXTRA_LIBS "pthread")
IF(ICONV_LIBRARY)
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