mirror of
https://github.com/weechat/weechat.git
synced 2026-07-08 10:43:13 +02:00
@@ -26,6 +26,13 @@
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
/* _XPG4_2 is needed on SunOS for macros like CMSG_SPACE */
|
||||
/* __EXTENSIONS__ is needed on SunOS for constants like NI_MAXHOST */
|
||||
#ifdef __sun
|
||||
#define _XPG4_2
|
||||
#define __EXTENSIONS__
|
||||
#endif
|
||||
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user