[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

libxrandr patch for Xrandr.h



Hi,

Xrandr.h contains the variable name "delete" which is a reserved name in c++
The consequence is kdebase ./configure will fail to include it, causing 
kdebase FTBFS since krandrtray cannot be built.

The patch is just a workarround to make it to work before upstream, that I've 
warned about that, fixes the problem.

I hope that'll help.
Cheers,
Anthony Mercatante
diff -Nur libxrandr-1.2.0/include/X11/extensions/Xrandr.h libxrandr-1.2.0.new/include/X11/extensions/Xrandr.h
--- libxrandr-1.2.0/include/X11/extensions/Xrandr.h	2006-12-13 10:24:25.000000000 +0100
+++ libxrandr-1.2.0.new/include/X11/extensions/Xrandr.h	2007-02-22 22:14:02.000000000 +0100
@@ -296,7 +296,7 @@
 int
 XRRGetOutputProperty (Display *dpy, RROutput output,
 		      Atom property, long offset, long length,
-		      Bool delete, Bool pending, Atom req_type, 
+		      Bool /* delete */, Bool pending, Atom req_type,
 		      Atom *actual_type, int *actual_format,
 		      unsigned long *nitems, unsigned long *bytes_after,
 		      unsigned char **prop);

Reply to: