This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: termcap interface code
- To: Justin Hopkins <hop at elwood dot pionet dot net>
- Subject: Re: termcap interface code
- From: David Coe <david at coent dot demon dot co dot uk>
- Date: Wed, 13 Aug 1997 08:59:25 +0100
- CC: gnu-win32 at cygnus dot com
- References: <3.0.1.32.19970811203638.0069123c@elwood.pionet.net>
Justin Hopkins wrote:
>
> Hi, I'm trying to compile texinfo 3.9 and I'm getting some
> undefined references at link-time. These are the functions:
>
> extern int tgetnum (), tgetflag (), tgetent ();
> extern char *tgetstr (), *tgoto ();
> extern char *getenv ();
> extern void tputs ();
>
> The comment nearby says these are Unix termcap interface code,
> so does anyone know where I can get these? Or if they're
> already in the cygwin32 b18 distribution..?
You need to install termcap-1.3 first (small patch attached). Both then
come up without problems with ./configure; make.
Best wishes
--
Dr David Coe \=\
58 Fairlawn Drive, East Grinstead \=\ Tel +44 1342 326860
West Sussex, RH19 1NT, United Kingdom \=\ Fax +44 1342 316019
*** tparam.c.orig Wed Jul 26 19:22:51 1995
--- tparam.c Tue Jul 08 06:57:22 1997
***************
*** 20,35 ****
#include <config.h>
#else /* not HAVE_CONFIG_H */
- #if defined(HAVE_STRING_H) || defined(STDC_HEADERS)
- #define bcopy(s, d, n) memcpy ((d), (s), (n))
- #endif
-
#ifdef STDC_HEADERS
#include <stdlib.h>
#include <string.h>
#else
char *malloc ();
char *realloc ();
#endif
#endif /* not HAVE_CONFIG_H */
--- 20,36 ----
#include <config.h>
#else /* not HAVE_CONFIG_H */
#ifdef STDC_HEADERS
#include <stdlib.h>
#include <string.h>
#else
char *malloc ();
char *realloc ();
+ #endif
+
+ /* Do this after the include, in case string.h prototypes bcopy. */
+ #if defined(HAVE_STRING_H) || defined(STDC_HEADERS) && !defined(bcopy)
+ #define bcopy(s, d, n) memcpy ((d), (s), (n))
#endif
#endif /* not HAVE_CONFIG_H */