Mail Archives: cygwin/1998/03/12/05:30:42
Here's a trivial patch against termcap 1.3 that allows a clean compile
under b19.
Wed Mar 11 16:43:27 1998 Mumit Khan <khan AT xraylith DOT wisc DOT edu>
* tparam.c: Move #define of bcopy to after #include <string.h>.
--- termcap-1.3/tparam.c.~1 Wed Mar 11 16:35:07 1998
+++ termcap-1.3/tparam.c Wed Mar 11 16:36:29 1998
@@ -20,16 +20,17 @@ the Free Software Foundation, 675 Mass A
#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
+
+/* 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 */
Regards,
Mumit -- khan AT xraylith DOT wisc DOT edu
http://www.xraylith.wisc.edu/~khan/
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".
- Raw text -