mirror of git://git.sv.gnu.org/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
This commit is contained in:
parent
1a473483b1
commit
82697f2fcd
|
@ -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
|
||||
|
|
|
@ -29,7 +29,6 @@
|
|||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <errno.h>
|
||||
#include <ctype.h>
|
||||
#include <locale.h>
|
||||
|
@ -39,6 +38,10 @@
|
|||
#include <getopt.h>
|
||||
#endif
|
||||
|
||||
#ifndef NANO_TINY
|
||||
#include <sys/ioctl.h>
|
||||
#endif
|
||||
|
||||
#ifdef ENABLE_NANORC
|
||||
static bool no_rcfiles = FALSE;
|
||||
/* Should we ignore all rcfiles? */
|
||||
|
|
Loading…
Reference in New Issue