summaryrefslogtreecommitdiff
path: root/src/gui/curses/gui-curses.h
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2018-03-11 09:59:39 +0100
committerSébastien Helleu <flashcode@flashtux.org>2018-03-11 09:59:39 +0100
commit805717e9ec3f66c960928bca607eceb871438fae (patch)
treec1832f0815bd8ade4530ed3948f55f0672103184 /src/gui/curses/gui-curses.h
parent0126b03f47db7f7842aff497cdbb0e41a0a5be0a (diff)
downloadweechat-805717e9ec3f66c960928bca607eceb871438fae.zip
core: add binary weechat-headless to run WeeChat without interface (closes #1120)
The optional command line option "--daemon" runs WeeChat like a daemon (fork, new process group, file descriptors closed).
Diffstat (limited to 'src/gui/curses/gui-curses.h')
-rw-r--r--src/gui/curses/gui-curses.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/curses/gui-curses.h b/src/gui/curses/gui-curses.h
index ed9df2533..7f7359d29 100644
--- a/src/gui/curses/gui-curses.h
+++ b/src/gui/curses/gui-curses.h
@@ -22,6 +22,9 @@
#include <time.h>
+#ifdef WEECHAT_HEADLESS
+#include "ncurses-fake.h"
+#else
#ifdef HAVE_NCURSESW_CURSES_H
#include <ncursesw/ncurses.h>
#elif HAVE_NCURSES_H
@@ -29,6 +32,7 @@
#else
#include <curses.h>
#endif /* HAVE_NCURSESW_CURSES_H */
+#endif /* WEECHAT_HEADLESS */
struct t_gui_buffer;
struct t_gui_line;