compile problem synaptics driver against 6.8.99.15

Christoph Brill egore at gmx.de
Sat Jul 23 03:59:47 PDT 2005


Try this patch. The synaptics driver comes with deprecated headers.


--- orig-synaptics-0.14.2/Xincludes/usr/X11R6/include/X11/Xfuncproto.h
2005-03-29 00:29:50.000000000 +0800 
+++ synaptics-0.14.2/Xincludes/usr/X11R6/include/X11/Xfuncproto.h
 2005-03-29 00:29:50.000000000 +0800 
@@ -69,4 +69,12 @@ 
 #endif 
 #endif /* _XFUNCPROTOBEGIN */ 
  
+#if defined(__GNUC__) && (__GNUC__ >= 4) 
+# define _X_SENTINEL(x) __attribute__ ((__sentinel__(x))) 
+# define _X_ATTRIBUTE_PRINTF(x,y)
__attribute__((__format__(__printf__,x,y))) 
+#else 
+# define _X_SENTINEL(x) 
+# define _X_ATTRIBUTE_PRINTF(x,y) 
+#endif /* GNUC >= 4 */ 
+ 
 #endif /* _XFUNCPROTO_H_ */




More information about the xorg mailing list