aboutsummaryrefslogtreecommitdiff
path: root/tests/drmtest.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/drmtest.c')
-rw-r--r--tests/drmtest.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/drmtest.c b/tests/drmtest.c
index 15e5c4ae..685a6527 100644
--- a/tests/drmtest.c
+++ b/tests/drmtest.c
@@ -25,9 +25,11 @@
*
*/
+#include <string.h>
#include <fcntl.h>
#include <fnmatch.h>
#include <sys/stat.h>
+#include <sys/ioctl.h>
#include "drmtest.h"
#define LIBUDEV_I_KNOW_THE_API_IS_SUBJECT_TO_CHANGE
@@ -60,7 +62,7 @@ int drm_open_matching(const char *pci_glob, int flags)
struct udev_device *device, *parent;
struct udev_list_entry *entry;
const char *pci_id, *path;
- int i, fd;
+ int fd;
udev = udev_new();
if (udev == NULL) {