From: David Lawrence Ramsey Date: Wed, 12 Jul 2006 18:57:04 +0000 (+0000) Subject: don't include sys/ioctl.h in nano.c when NANO_TINY is defined, as X-Git-Tag: v1.9.99pre1~81 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=82697f2fcd476e63aaf9c4c31977f8453046f538;p=nano.git don't include sys/ioctl.h in nano.c when NANO_TINY is defined, as ioctl() is never used then git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3780 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index 3d4dbc2d..dfe37669 100644 --- a/ChangeLog +++ b/ChangeLog @@ -30,6 +30,8 @@ CVS code - manual pages were written for, consistent in the documentation. Changes to AUTHORS, nano.1, nanorc.5, and rnano.1. (DLR, based on suggestions by Jordi) + - Don't include sys/ioctl.h in nano.c when NANO_TINY is defined, + as ioctl() is never used then. (DLR) - browser.c: do_browser() - Refactor the mouse support, modeling it after do_mouse() for diff --git a/src/nano.c b/src/nano.c index 5d621675..785315e0 100644 --- a/src/nano.c +++ b/src/nano.c @@ -29,7 +29,6 @@ #include #include #include -#include #include #include #include @@ -39,6 +38,10 @@ #include #endif +#ifndef NANO_TINY +#include +#endif + #ifdef ENABLE_NANORC static bool no_rcfiles = FALSE; /* Should we ignore all rcfiles? */