summaryrefslogtreecommitdiff
path: root/tests/modetest
diff options
context:
space:
mode:
authorKylie McClain <somasis@exherbo.org>2016-01-19 22:27:28 -0500
committerEmil Velikov <emil.l.velikov@gmail.com>2016-01-26 21:50:17 +0000
commitff0c9caa8e1e076b82241304dfd19d5b3e2a2aec (patch)
treefab06232087fa400eddce0a7930cae76c79c43cc /tests/modetest
parent358615f416a8f3085a63c03a55564f71946083d1 (diff)
downloadlibdrm-ff0c9caa8e1e076b82241304dfd19d5b3e2a2aec.tar.gz
libdrm-ff0c9caa8e1e076b82241304dfd19d5b3e2a2aec.tar.bz2
libdrm-ff0c9caa8e1e076b82241304dfd19d5b3e2a2aec.zip
tests: Include poll.h rather than sys/poll.h
sys/poll.h is a non-standard location of the poll.h header, and is incorrect on non-glibc libcs. poll.h, however, is defined in SUS (v2) and is more portable. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93764 http://pubs.opengroup.org/onlinepubs/007908799/xsh/poll.h.html Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'tests/modetest')
-rw-r--r--tests/modetest/modetest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/modetest/modetest.c b/tests/modetest/modetest.c
index b8aa94b1..a5ac5bd5 100644
--- a/tests/modetest/modetest.c
+++ b/tests/modetest/modetest.c
@@ -53,7 +53,7 @@
#include <string.h>
#include <strings.h>
#include <errno.h>
-#include <sys/poll.h>
+#include <poll.h>
#include <sys/time.h>
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>