diff options
author | Jari Aalto <jari.aalto@cante.net> | 2006-10-10 14:15:34 +0000 |
---|---|---|
committer | Jari Aalto <jari.aalto@cante.net> | 2009-09-12 16:46:58 +0000 |
commit | 0628567a28f3510f506ae46cb9b24b73a6d2dc5d (patch) | |
tree | da84934c41272cdc655694846c15c1c5db807445 /lib/termcap | |
parent | 95732b497d12c98613bb3c5db16b61f377501a59 (diff) | |
download | android_external_bash-0628567a28f3510f506ae46cb9b24b73a6d2dc5d.tar.gz android_external_bash-0628567a28f3510f506ae46cb9b24b73a6d2dc5d.tar.bz2 android_external_bash-0628567a28f3510f506ae46cb9b24b73a6d2dc5d.zip |
Imported from ../bash-3.2.tar.gz.
Diffstat (limited to 'lib/termcap')
-rw-r--r-- | lib/termcap/termcap.c | 12 | ||||
-rw-r--r-- | lib/termcap/tparam.c | 8 |
2 files changed, 20 insertions, 0 deletions
diff --git a/lib/termcap/termcap.c b/lib/termcap/termcap.c index 780b15c..0addcc6 100644 --- a/lib/termcap/termcap.c +++ b/lib/termcap/termcap.c @@ -27,6 +27,10 @@ Free Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA. */ #include <fcntl.h> +#ifdef HAVE_UNISTD_H +#include <unistd.h> +#endif + #ifdef HAVE_STDLIB_H # include <stdlib.h> #else @@ -35,6 +39,14 @@ extern char *malloc (); extern char *realloc (); #endif +#if defined (HAVE_STRING_H) +#include <string.h> +#endif + +#if !defined (HAVE_BCOPY) && (defined (HAVE_STRING_H) || defined (STDC_HEADERS)) +# define bcopy(s, d, n) memcpy ((d), (s), (n)) +#endif + #else /* not HAVE_CONFIG_H */ #ifdef STDC_HEADERS diff --git a/lib/termcap/tparam.c b/lib/termcap/tparam.c index 1c83f04..644042d 100644 --- a/lib/termcap/tparam.c +++ b/lib/termcap/tparam.c @@ -27,6 +27,14 @@ extern char *malloc (); extern char *realloc (); #endif +#if defined (HAVE_STRING_H) +#include <string.h> +#endif + +#if !defined (HAVE_BCOPY) && (defined (HAVE_STRING_H) || defined (STDC_HEADERS)) +# define bcopy(s, d, n) memcpy ((d), (s), (n)) +#endif + #else /* not HAVE_CONFIG_H */ #if defined(HAVE_STRING_H) || defined(STDC_HEADERS) |