diff options
author | Khem Raj | 2016-01-19 23:35:11 -0600 |
---|---|---|
committer | Emil Velikov | 2016-01-26 15:50:17 -0600 |
commit | 358615f416a8f3085a63c03a55564f71946083d1 (patch) | |
tree | ad81522a5fb6e33693050cd7790a9fe327c40e26 /tests/kms | |
parent | 1674147a149c2165a927a5d8eb0db4eee1f6a4e3 (diff) | |
download | external-libgbm-358615f416a8f3085a63c03a55564f71946083d1.tar.gz external-libgbm-358615f416a8f3085a63c03a55564f71946083d1.tar.xz external-libgbm-358615f416a8f3085a63c03a55564f71946083d1.zip |
tests: Include sys/select.h
Used in compliance with POSIX 2001/2008
Fixes errors e.g.
error: implicit declaration of function 'select'
and helps with missing definitions of FD_* defines
v2: conditionally include sys/select.h, include in every test where
needed.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Reviewed-by: Thierry Reding <thierry.reding@gmail.com> (v1)
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'tests/kms')
-rw-r--r-- | tests/kms/kms-steal-crtc.c | 3 | ||||
-rw-r--r-- | tests/kms/kms-universal-planes.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/kms/kms-steal-crtc.c b/tests/kms/kms-steal-crtc.c index 2f7f327e..497772e2 100644 --- a/tests/kms/kms-steal-crtc.c +++ b/tests/kms/kms-steal-crtc.c | |||
@@ -31,6 +31,9 @@ | |||
31 | #include <stdio.h> | 31 | #include <stdio.h> |
32 | #include <string.h> | 32 | #include <string.h> |
33 | #include <unistd.h> | 33 | #include <unistd.h> |
34 | #ifdef HAVE_SYS_SELECT_H | ||
35 | #include <sys/select.h> | ||
36 | #endif | ||
34 | 37 | ||
35 | #include <drm_fourcc.h> | 38 | #include <drm_fourcc.h> |
36 | 39 | ||
diff --git a/tests/kms/kms-universal-planes.c b/tests/kms/kms-universal-planes.c index 9151231f..d8e5fc48 100644 --- a/tests/kms/kms-universal-planes.c +++ b/tests/kms/kms-universal-planes.c | |||
@@ -32,6 +32,9 @@ | |||
32 | #include <stdio.h> | 32 | #include <stdio.h> |
33 | #include <string.h> | 33 | #include <string.h> |
34 | #include <unistd.h> | 34 | #include <unistd.h> |
35 | #ifdef HAVE_SYS_SELECT_H | ||
36 | #include <sys/select.h> | ||
37 | #endif | ||
35 | 38 | ||
36 | #include <drm_fourcc.h> | 39 | #include <drm_fourcc.h> |
37 | #include "xf86drm.h" | 40 | #include "xf86drm.h" |