xrandr does not build against uclibc

Ryan Hope rmh3093 at gmail.com
Mon Feb 23 11:16:37 PST 2009


I because of a conflict with "clone" used in xrandr.c and sched.h from
uclibc, xrandr does not build against uclibc. Here is a small patch to fix
this issue:

diff --git a/xrandr.c b/xrandr.c
index e2a657f..e7c3d61 100644
--- a/xrandr.c
+++ b/xrandr.c
@@ -189,7 +189,7 @@ reflection_name (Rotation rotation)

 #if HAS_RANDR_1_2
 typedef enum _policy {
-    clone, extend
+    _clone, extend
 } policy_t;

 typedef enum _relation {
@@ -1622,7 +1622,7 @@ main (int argc, char **argv)
     int                ret = 0;
 #if HAS_RANDR_1_2
     output_t   *output = NULL;
-    policy_t   policy = clone;
+    policy_t   policy = _clone;
     Bool       setit_1_2 = False;
     Bool       query_1_2 = False;
     Bool       modeit = False;
@@ -1886,7 +1886,7 @@ main (int argc, char **argv)
            continue;
        }
        if (!strcmp ("--clone", argv[i])) {
-           policy = clone;
+           policy = _clone;
            setit_1_2 = True;
            continue;
        }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.x.org/archives/xorg-devel/attachments/20090223/dc6c18cd/attachment.htm 


More information about the xorg-devel mailing list