Commit 82697f2f authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

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
No related merge requests found
Showing with 6 additions and 1 deletion
+6 -1
...@@ -30,6 +30,8 @@ CVS code - ...@@ -30,6 +30,8 @@ CVS code -
manual pages were written for, consistent in the manual pages were written for, consistent in the
documentation. Changes to AUTHORS, nano.1, nanorc.5, and documentation. Changes to AUTHORS, nano.1, nanorc.5, and
rnano.1. (DLR, based on suggestions by Jordi) 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: - browser.c:
do_browser() do_browser()
- Refactor the mouse support, modeling it after do_mouse() for - Refactor the mouse support, modeling it after do_mouse() for
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
#include <unistd.h> #include <unistd.h>
#include <string.h> #include <string.h>
#include <fcntl.h> #include <fcntl.h>
#include <sys/ioctl.h>
#include <errno.h> #include <errno.h>
#include <ctype.h> #include <ctype.h>
#include <locale.h> #include <locale.h>
...@@ -39,6 +38,10 @@ ...@@ -39,6 +38,10 @@
#include <getopt.h> #include <getopt.h>
#endif #endif
#ifndef NANO_TINY
#include <sys/ioctl.h>
#endif
#ifdef ENABLE_NANORC #ifdef ENABLE_NANORC
static bool no_rcfiles = FALSE; static bool no_rcfiles = FALSE;
/* Should we ignore all rcfiles? */ /* Should we ignore all rcfiles? */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment