--- a/randr/randrstr.h-orig	2018-11-17 22:21:01.000000000 +0100
+++ b/randr/randrstr.h	2018-11-17 22:21:11.000000000 +0100
@@ -63,7 +63,9 @@
 typedef XID RROutput;
 typedef XID RRCrtc;
 typedef XID RRProvider;
+# ifndef XMD_H
 typedef XID RRLease;
+# endif
 
 extern int RREventBase, RRErrorBase;
 
