Submitted By:            Kevin Day <kevin AT kevux DOT org>
Date:                    2006-07-03
Initial Package Version: 0.2.1
Upstream Status:         Not submitted
Description:             The include "#include <assert.h>" is missing, however, the problem may be more extensive than that, so I am currently altogethor disabling assert itself.  This behavior is the same as passing -DNDEBUG when assert.h exist.  The reason for this patch is that Xorg consistently fails to return the screen back to the user on any kind of Dynamic Linker Error (ld), including dloader issues.  This is a serious bug, but they seem to don't care.
--- xf86-video-via-0.2.1/src/via_dri.c.orig	2006-07-03 14:34:36.000000000 -0500
+++ xf86-video-via-0.2.1/src/via_dri.c	2006-07-03 14:37:55.000000000 -0500
@@ -60,6 +60,9 @@
 #define VIA_AGP_1X_MODE 0x01
 #define VIA_AGP_FW_MODE 0x10
 
+// for the time being, lets disable this
+#define	assert(expr)		((void) 0)
+
 extern void GlxSetVisualConfigs(
     int nconfigs,
     __GLXvisualConfig *configs,
