Module Name:    xsrc
Committed By:   mrg
Date:           Tue Nov 23 08:48:47 UTC 2010

Modified Files:
        xsrc/external/mit/xorg-server/dist/include: os.h

Log Message:
disable _X_DEPRECATED on netbsd; it has led to a bunch of -Wno-error in
the past, and with new xorg-server, almost every driver file needs it.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 xsrc/external/mit/xorg-server/dist/include/os.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/xorg-server/dist/include/os.h
diff -u xsrc/external/mit/xorg-server/dist/include/os.h:1.4 xsrc/external/mit/xorg-server/dist/include/os.h:1.5
--- xsrc/external/mit/xorg-server/dist/include/os.h:1.4	Tue Nov 23 06:38:13 2010
+++ xsrc/external/mit/xorg-server/dist/include/os.h	Tue Nov 23 08:48:47 2010
@@ -219,6 +219,14 @@
 #define _HAVE_XALLOC_DECLS
 
 /*
+ * These causes all sorts of warnings->errors in the xsrc build.
+ */
+#ifdef __NetBSD__
+#undef _X_DEPRECATED
+#define _X_DEPRECATED
+#endif
+
+/*
  * Use malloc(3) instead.
  */
 extern _X_EXPORT void *Xalloc(unsigned long /*amount*/) _X_DEPRECATED;

Reply via email to