diff --git a/src/intel_module.c b/src/intel_module.c index 0a70b241..edea48d8 100644 --- a/src/intel_module.c +++ b/src/intel_module.c @@ -28,8 +28,10 @@ #include "config.h" #endif +#include #include #include +#include #include #include @@ -394,7 +396,7 @@ static Bool has_kernel_mode_setting(struct pci_device *dev) gp.param = I915_PARAM_HAS_GEM; gp.value = &ret; - (void)drmIoctl(fd, DRM_IOCTL_I915_GETPARAM, &gp, sizeof(gp)); + (void)drmIoctl(fd, DRM_IOCTL_I915_GETPARAM, &gp); close(fd); }