Subject: termcap-1.3 patch for cygwin32 b19
From: [email-masked] (Mumit Khan)

12 Mar 1998 05:30:42 -0800
Message-ID: <[email-masked]>
To: [email-masked]

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  <[email-masked]>

	* 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 -- [email-masked]
http://www.xraylith.wisc.edu/~khan/
-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".