--- a/include/drm/drm.h +++ b/include/drm/drm.h @@ -38,6 +38,9 @@ #if defined(__linux__) +#ifndef __SANE_USERSPACE_TYPES__ +#define __SANE_USERSPACE_TYPES__ /* For PPC64, to get LL64 types */ +#endif #include #include typedef unsigned int drm_handle_t;