summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2018-03-16 20:09:35 +0100
committerSébastien Helleu <flashcode@flashtux.org>2018-03-16 20:09:35 +0100
commit84f4e31425f2f10edd5f97f8887a2b75c224b405 (patch)
tree38253213a027254a42d478ef0d1ae008ff96faa4 /src
parentb4cdc29a8f70c0e78b53c6e1f00d477b5a112be3 (diff)
downloadweechat-84f4e31425f2f10edd5f97f8887a2b75c224b405.zip
core: fix compilation error on Cygwin
Diffstat (limited to 'src')
-rw-r--r--src/gui/curses/gui-curses-term.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/curses/gui-curses-term.c b/src/gui/curses/gui-curses-term.c
index 08c01491c..369fda331 100644
--- a/src/gui/curses/gui-curses-term.c
+++ b/src/gui/curses/gui-curses-term.c
@@ -23,6 +23,7 @@
#include "config.h"
#endif
+#ifndef WEECHAT_HEADLESS
#ifdef HAVE_NCURSESW_CURSES_H
#ifdef __sun
#include <ncurses/term.h>
@@ -32,6 +33,7 @@
#else
#include <term.h>
#endif /* HAVE_NCURSESW_CURSES_H */
+#endif /* WEECHAT_HEADLESS */
/*
@@ -45,10 +47,10 @@
void
gui_term_set_eat_newline_glitch (int value)
{
-#ifdef HAVE_EAT_NEWLINE_GLITCH
+#if !defined(WEECHAT_HEADLESS) && defined(HAVE_EAT_NEWLINE_GLITCH)
eat_newline_glitch = value;
#else
/* make C compiler happy */
(void) value;
-#endif /* HAVE_EAT_NEWLINE_GLITCH */
+#endif
}