openbsd-ports/japanese/canna/patches/patch-lib_RK_RKintern_h

19 lines
646 B
Plaintext

$OpenBSD: patch-lib_RK_RKintern_h,v 1.1 2002/03/26 19:58:37 espie Exp $
--- lib/RK/RKintern.h.orig Tue Mar 26 20:37:35 2002
+++ lib/RK/RKintern.h Tue Mar 26 20:38:02 2002
@@ -105,7 +105,11 @@ extern void free();
# include <memory.h>
# endif
-# ifndef __EMX__
-# define bzero(buf, size) memset((char *)(buf), 0x00, (size))
-# define bcopy(src, dst, size) memcpy((char *)(dst), (char *)(src), (size))
+# ifdef __OpenBSD__
+# include <string.h>
+# else
+# ifndef __EMX__
+# define bzero(buf, size) memset((char *)(buf), 0x00, (size))
+# define bcopy(src, dst, size) memcpy((char *)(dst), (char *)(src), (size))
+# endif
# endif
#endif