pkgsrc-ng/x11/openmotif/patches/patch-lib_Xm_Xmfuncs.h
2013-09-26 17:14:40 +02:00

24 lines
619 B
C

$NetBSD: patch-lib_Xm_Xmfuncs.h,v 1.1 2012/01/12 16:01:46 hans Exp $
Avoid all the outdated #ifdef mess on SunOS. SunOS had both bcopy/bzero/bcmp
and memmove/memcmp/memset since at least 1996.
--- lib/Xm/Xmfuncs.h.orig 2002-01-04 22:23:20.000000000 +0100
+++ lib/Xm/Xmfuncs.h 2012-01-10 19:15:58.346463824 +0100
@@ -34,6 +34,8 @@ in this Software without prior written a
/* the old Xfuncs.h, for pre-R6 */
+#ifndef __sun
+
#ifdef X_USEBFUNCS
void bcopy();
void bzero();
@@ -88,4 +90,6 @@ int bcmp();
#endif /* SYSV else */
#endif /* ! X_NOT_STDC_ENV else */
+#endif /* __sun */
+
#endif /* _XFUNCS_H_ */