summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArkadiusz Hiler <arkadiusz.hiler@intel.com>2017-06-07 12:14:04 +0200
committerArkadiusz Hiler <arkadiusz.hiler@intel.com>2017-06-07 13:28:16 +0300
commitacfed73248f1f629fc1df0794496d2be302603d9 (patch)
treeb7f47b98957f7b2a5ea66f088166628d4aaab5ae
parent200d0f5d4972f78b8ed0b58cdb99c9a351a79b42 (diff)
ffs: Include strings.h
ffs() was used in couple of places without explicitly including strings.h. On a few libc implementation this is done implicitly through other headers, but let's do not rely on that behavior. Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
-rw-r--r--lib/igt_gt.c1
-rw-r--r--tests/gem_exec_store.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/igt_gt.c b/lib/igt_gt.c
index 11643edd..be44fcae 100644
--- a/lib/igt_gt.c
+++ b/lib/igt_gt.c
@@ -22,6 +22,7 @@
*/
#include <string.h>
+#include <strings.h>
#include <signal.h>
#include <errno.h>
#include <sys/types.h>
diff --git a/tests/gem_exec_store.c b/tests/gem_exec_store.c
index d2b3b737..545a4b56 100644
--- a/tests/gem_exec_store.c
+++ b/tests/gem_exec_store.c
@@ -29,6 +29,7 @@
#include "igt.h"
#include "igt_gt.h"
+#include <strings.h>
#define LOCAL_I915_EXEC_BSD_SHIFT (13)
#define LOCAL_I915_EXEC_BSD_MASK (3 << LOCAL_I915_EXEC_BSD_SHIFT)