From 4d8692e44a36a935fe74dee74d39332002ad1481 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 10 Dec 1996 05:22:12 +0000 Subject: [PATCH] Include config.h. [!HAVE_BCOPY && HAVE_MEMCPY && !defined (bcopy)]: Define bcopy in terms of memcpy. Reported by Marcus Daniels. --- lib/obstack.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/obstack.h b/lib/obstack.h index 09f872e28c..5dd8881516 100644 --- a/lib/obstack.h +++ b/lib/obstack.h @@ -102,6 +102,15 @@ Summary: #ifndef __OBSTACK_H__ #define __OBSTACK_H__ + +#ifdef HAVE_CONFIG_H +# include +#endif + +#if !defined (HAVE_BCOPY) && defined (HAVE_MEMCPY) && !defined (bcopy) +# define bcopy(from, to, len) memcpy ((to), (from), (len)) +#endif + /* We use subtraction of (char *)0 instead of casting to int because on word-addressable machines a simple cast to int -- 2.30.2