OSDN Git Service

tests: fix implicit funciton declaration errors
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 23 Feb 2015 13:42:15 +0000 (13:42 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 27 Feb 2015 15:51:15 +0000 (15:51 +0000)
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>
tests/auth.c
tests/getclient.c
tests/getstats.c
tests/lock.c
tests/name_from_fd.c
tests/setversion.c
tests/updatedraw.c

index 9b6fca9..9147b11 100644 (file)
@@ -26,6 +26,7 @@
  */
 
 #include <limits.h>
+#include <sys/ioctl.h>
 #include "drmtest.h"
 
 enum auth_event {
index 349c16e..481ce11 100644 (file)
@@ -26,6 +26,7 @@
  */
 
 #include <limits.h>
+#include <sys/ioctl.h>
 #include "drmtest.h"
 
 /**
index bd55b12..8d40d0b 100644 (file)
@@ -26,6 +26,7 @@
  */
 
 #include <limits.h>
+#include <sys/ioctl.h>
 #include "drmtest.h"
 
 /**
index 86caa28..365681b 100644 (file)
@@ -30,6 +30,7 @@
  */
 
 #include <limits.h>
+#include <sys/ioctl.h>
 #include "drmtest.h"
 
 enum auth_event {
index 330c8ff..e3db413 100644 (file)
@@ -28,6 +28,7 @@
 #include <unistd.h>
 #include <fcntl.h>
 #include <limits.h>
+#include <string.h>
 #include "drmtest.h"
 
 /**
index 5a5d01c..2f7b529 100644 (file)
@@ -27,6 +27,7 @@
 
 #include <limits.h>
 #include <string.h>
+#include <sys/ioctl.h>
 #include "drmtest.h"
 
 /**
index a61eb15..8e0b94b 100644 (file)
@@ -25,6 +25,7 @@
  *
  */
 
+#include <sys/ioctl.h>
 #include "drmtest.h"
 
 static void