summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-08-20 12:55:20 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-08-20 12:56:30 +0100
commit027569bf83fc6d67dca7cfd65fdfa37ef6b47204 (patch)
tree06764069b31006d22697831f46da900d8dece50d /src
parentf1b259f627814c765ea93d8c839ee7533249974f (diff)
Missing includes for b5b76ad849b
The warnings of implicit function declarations were lost amongst the noise. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/intel_module.c4
1 files changed, 3 insertions, 1 deletions
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 <unistd.h>
#include <xf86_OSproc.h>
#include <xf86Parser.h>
+#include <xf86drm.h>
#include <xf86drmMode.h>
#include <i915_drm.h>
@@ -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);
}