diff options
author | Jim Meyering <jim@meyering.net> | 1996-12-10 05:22:12 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1996-12-10 05:22:12 +0000 |
commit | a16b0a142f148d9c69583984abd0588e9d27c814 (patch) | |
tree | a736a0fc8a623e7aedf2a8a44880b54ea7d275bc /lib | |
parent | 5c39a3b65b687d2508c165a98b052b048e53a68d (diff) | |
download | coreutils-a16b0a142f148d9c69583984abd0588e9d27c814.tar.xz |
Include config.h.
[!HAVE_BCOPY && HAVE_MEMCPY && !defined (bcopy)]: Define bcopy
in terms of memcpy. Reported by Marcus Daniels.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/obstack.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/obstack.h b/lib/obstack.h index 09f872e28..5dd888151 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 <config.h> +#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 |