From 805717e9ec3f66c960928bca607eceb871438fae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 11 Mar 2018 09:59:39 +0100 Subject: 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). --- src/gui/curses/gui-curses.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gui/curses/gui-curses.h') 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 +#ifdef WEECHAT_HEADLESS +#include "ncurses-fake.h" +#else #ifdef HAVE_NCURSESW_CURSES_H #include #elif HAVE_NCURSES_H @@ -29,6 +32,7 @@ #else #include #endif /* HAVE_NCURSESW_CURSES_H */ +#endif /* WEECHAT_HEADLESS */ struct t_gui_buffer; struct t_gui_line; -- cgit v1.2.3