From 35d2bc6b38af295c88c9844e5097a25ee2cad46b Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Fri, 31 May 2019 20:49:57 +0200 Subject: [PATCH] build: fix compilation on another system The header file is needed to define 'sig_atomic_t'. (Don't know why on my main system it compiled fine without it.) --- src/nano.c | 1 - src/nano.h | 5 +++-- src/text.c | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/nano.c b/src/nano.c index 319b2a52..7d692301 100644 --- a/src/nano.c +++ b/src/nano.c @@ -33,7 +33,6 @@ #include #endif #include -#include #include #ifdef HAVE_TERMIOS_H #include diff --git a/src/nano.h b/src/nano.h index 26a0d1a2..a5b85334 100644 --- a/src/nano.h +++ b/src/nano.h @@ -113,10 +113,11 @@ #define N_(string) gettext_noop(string) /* Mark a string that will be sent to gettext() later. */ -#include -#include #include #include +#include +#include +#include /* If we aren't using an ncurses with mouse support, exclude any * mouse routines, as they are useless then. */ diff --git a/src/text.c b/src/text.c index 174f1a50..332d6594 100644 --- a/src/text.c +++ b/src/text.c @@ -27,7 +27,6 @@ #include #include -#include #include #include #include