diff --git a/panda/src/x11display/x11GraphicsPipe.cxx b/panda/src/x11display/x11GraphicsPipe.cxx index 6acd4dbadb..d50fc51dd1 100644 --- a/panda/src/x11display/x11GraphicsPipe.cxx +++ b/panda/src/x11display/x11GraphicsPipe.cxx @@ -21,6 +21,7 @@ // Ugly workaround around the conflicting definition // of Connection that randr.h provides. #define _RANDR_H_ +typedef unsigned short Connection; typedef unsigned short Rotation; typedef unsigned short SizeID; typedef unsigned short SubpixelOrder; diff --git a/panda/src/x11display/x11GraphicsWindow.cxx b/panda/src/x11display/x11GraphicsWindow.cxx index 16473035a3..3a5b745a8d 100644 --- a/panda/src/x11display/x11GraphicsWindow.cxx +++ b/panda/src/x11display/x11GraphicsWindow.cxx @@ -40,6 +40,7 @@ // Ugly workaround around the conflicting definition // of Connection that randr.h provides. #define _RANDR_H_ +typedef unsigned short Connection; typedef unsigned short Rotation; typedef unsigned short SizeID; typedef unsigned short SubpixelOrder;