1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-30 06:46:38 +02:00

core: fix compilation on SmartOS (bug #40981, closes #23)

This commit is contained in:
Sebastien Helleu
2014-03-16 19:18:16 +01:00
parent d920f87455
commit a4a4e2f38f
4 changed files with 16 additions and 0 deletions
+1
View File
@@ -15,6 +15,7 @@ http://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
== Version 0.4.4 (under dev)
* core: fix compilation on SmartOS (bug #40981, closes #23)
* core: add missing \0 at the end of stderr buffer in hook_process
* core: fix highlight problem with "(?-i)" and upper case letters in option
weechat.look.highlight (closes #24)
+7
View File
@@ -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>
+4
View File
@@ -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)
+4
View File
@@ -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