openbsd-ports/japanese/canna/patches/patch-lib_canna_canna_h
espie ebc08afb77 prevent segfault on amd64, no idea if it works fine yet.
no pkg bump, since this just fixes build.
2008-08-29 15:01:29 +00:00

19 lines
679 B
Plaintext

$OpenBSD: patch-lib_canna_canna_h,v 1.2 2008/08/29 15:01:29 espie Exp $
--- lib/canna/canna.h.orig Mon Dec 2 03:20:15 1996
+++ lib/canna/canna.h Fri Aug 29 16:52:05 2008
@@ -110,7 +110,11 @@ extern CANNA_wcstombs pro((char *, wchar_t *, int));
# 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