pkgsrc/x11/xservers/patches/patch-ag
tron 990ad28ef5 Use C code instead of dubious inline assembler to fix build problem under
NetBSD 3.99.15 which resulted in an incomplete package installation.
Problem pointed out by Thomas Klausner in private e-mail.

Bump package revision because of this fix.
2006-02-23 15:39:48 +00:00

22 lines
717 B
Text

$NetBSD: patch-ag,v 1.1 2006/02/23 15:39:48 tron Exp $
--- programs/Xserver/hw/xfree86/vga256/drivers/cirrus/cir_inline.h.orig 2006-02-23 14:45:57.000000000 +0000
+++ programs/Xserver/hw/xfree86/vga256/drivers/cirrus/cir_inline.h 2006-02-23 14:55:22.000000000 +0000
@@ -28,6 +28,7 @@
: "cx", "di");
}
+#ifdef BROKEN_INLINE_ASSEMBLER
static __inline__ void __memset( void * s, char c, int count ) {
__asm__ __volatile__(
"cld\n\t"
@@ -58,6 +59,9 @@
: "=a" (c), "=D" (s), "=d" (count) :"0" (c),"1" (s),"2" (count)
:"cx");
}
+#else
+#define __memset(s, c, count) (void)memset((s), (c), (count))
+#endif
static __inline__ void __memcpy( void *to, void *from, int n ) {
__asm__ __volatile__("cld\n\t"