summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2015-02-23 13:42:15 +0000
committerEmil Velikov <emil.l.velikov@gmail.com>2015-02-27 15:51:15 +0000
commit794810d62d49c05a9b06c8570a6b668b4bb0179d (patch)
tree3cf7de23193dfb2a313407958bd8802da1f97c00
parent2b209fc409179a271751f57f6caad952e57eb3f6 (diff)
tests: fix implicit funciton declaration errors
ioctl() and strcmp() were used without the relevent header being included. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
-rw-r--r--tests/auth.c1
-rw-r--r--tests/getclient.c1
-rw-r--r--tests/getstats.c1
-rw-r--r--tests/lock.c1
-rw-r--r--tests/name_from_fd.c1
-rw-r--r--tests/setversion.c1
-rw-r--r--tests/updatedraw.c1
7 files changed, 7 insertions, 0 deletions
diff --git a/tests/auth.c b/tests/auth.c
index 9b6fca94..9147b115 100644
--- a/tests/auth.c
+++ b/tests/auth.c
@@ -26,6 +26,7 @@
*/
#include <limits.h>
+#include <sys/ioctl.h>
#include "drmtest.h"
enum auth_event {
diff --git a/tests/getclient.c b/tests/getclient.c
index 349c16ec..481ce119 100644
--- a/tests/getclient.c
+++ b/tests/getclient.c
@@ -26,6 +26,7 @@
*/
#include <limits.h>
+#include <sys/ioctl.h>
#include "drmtest.h"
/**
diff --git a/tests/getstats.c b/tests/getstats.c
index bd55b12e..8d40d0b3 100644
--- a/tests/getstats.c
+++ b/tests/getstats.c
@@ -26,6 +26,7 @@
*/
#include <limits.h>
+#include <sys/ioctl.h>
#include "drmtest.h"
/**
diff --git a/tests/lock.c b/tests/lock.c
index 86caa281..365681b5 100644
--- a/tests/lock.c
+++ b/tests/lock.c
@@ -30,6 +30,7 @@
*/
#include <limits.h>
+#include <sys/ioctl.h>
#include "drmtest.h"
enum auth_event {
diff --git a/tests/name_from_fd.c b/tests/name_from_fd.c
index 330c8ff0..e3db413a 100644
--- a/tests/name_from_fd.c
+++ b/tests/name_from_fd.c
@@ -28,6 +28,7 @@
#include <unistd.h>
#include <fcntl.h>
#include <limits.h>
+#include <string.h>
#include "drmtest.h"
/**
diff --git a/tests/setversion.c b/tests/setversion.c
index 5a5d01cd..2f7b529a 100644
--- a/tests/setversion.c
+++ b/tests/setversion.c
@@ -27,6 +27,7 @@
#include <limits.h>
#include <string.h>
+#include <sys/ioctl.h>
#include "drmtest.h"
/**
diff --git a/tests/updatedraw.c b/tests/updatedraw.c
index a61eb151..8e0b94b6 100644
--- a/tests/updatedraw.c
+++ b/tests/updatedraw.c
@@ -25,6 +25,7 @@
*
*/
+#include <sys/ioctl.h>
#include "drmtest.h"
static void