diff options
Diffstat (limited to 'lib/termcap/termcap.c')
-rw-r--r-- | lib/termcap/termcap.c | 12 |
1 files changed, 12 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 |