diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2017-07-27 18:01:47 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2017-07-27 18:01:47 +0000 |
commit | 6ef77a9f70fa12d91578727533caa7172e17461d (patch) | |
tree | da72f17198fa33cc12482caa7293ae426ac0b4dc /gnu/lib/libreadline | |
parent | ea49579f7b42924ac24ec389ccb24a65cb5fb544 (diff) |
fix warnings from missing headers.
okay deraadt@
Diffstat (limited to 'gnu/lib/libreadline')
-rw-r--r-- | gnu/lib/libreadline/rldefs.h | 1 | ||||
-rw-r--r-- | gnu/lib/libreadline/rltty.c | 2 | ||||
-rw-r--r-- | gnu/lib/libreadline/savestring.c | 1 | ||||
-rw-r--r-- | gnu/lib/libreadline/terminal.c | 2 |
4 files changed, 2 insertions, 4 deletions
diff --git a/gnu/lib/libreadline/rldefs.h b/gnu/lib/libreadline/rldefs.h index f1c8f1a9466..52aecf6ea00 100644 --- a/gnu/lib/libreadline/rldefs.h +++ b/gnu/lib/libreadline/rldefs.h @@ -111,6 +111,7 @@ extern char *_rl_strpbrk PARAMS((const char *, const char *)); #if !defined (savestring) #include <stdio.h> +#include <stdlib.h> static char * xstrdup(const char *s) { diff --git a/gnu/lib/libreadline/rltty.c b/gnu/lib/libreadline/rltty.c index 539edfd7e22..b4bb9ab6383 100644 --- a/gnu/lib/libreadline/rltty.c +++ b/gnu/lib/libreadline/rltty.c @@ -37,9 +37,7 @@ #include "rldefs.h" -#if defined (GWINSZ_IN_SYS_IOCTL) # include <sys/ioctl.h> -#endif /* GWINSZ_IN_SYS_IOCTL */ #include "rltty.h" #include "readline.h" diff --git a/gnu/lib/libreadline/savestring.c b/gnu/lib/libreadline/savestring.c index c30c3bc3b56..b11d9ab5cda 100644 --- a/gnu/lib/libreadline/savestring.c +++ b/gnu/lib/libreadline/savestring.c @@ -22,6 +22,7 @@ #include <config.h> #include <stdio.h> +#include <stdlib.h> #ifdef HAVE_STRING_H # include <string.h> #endif diff --git a/gnu/lib/libreadline/terminal.c b/gnu/lib/libreadline/terminal.c index 03237e608c0..766ec0ac5a2 100644 --- a/gnu/lib/libreadline/terminal.c +++ b/gnu/lib/libreadline/terminal.c @@ -51,9 +51,7 @@ /* System-specific feature definitions and include files. */ #include "rldefs.h" -#if defined (GWINSZ_IN_SYS_IOCTL) && !defined (TIOCGWINSZ) # include <sys/ioctl.h> -#endif /* GWINSZ_IN_SYS_IOCTL && !TIOCGWINSZ */ #include "rltty.h" #include "tcap.h" |