summaryrefslogtreecommitdiff
path: root/drm-legacy.c
diff options
context:
space:
mode:
authorFabio Estevam <festevam@gmail.com>2017-03-20 12:49:07 -0300
committerEric Engestrom <eric.engestrom@imgtec.com>2017-03-21 12:02:43 +0000
commite72f85440be6bf6a773e59c2ab0fa47b8d34b94d (patch)
treece4090998d023b794e553ec4ebd674bf2955ded9 /drm-legacy.c
parentb88a44d95eceaeebc5b9c6972ffcbfe9eca00aea (diff)
downloadkmscube-e72f85440be6bf6a773e59c2ab0fa47b8d34b94d.tar.gz
drm-legacy: Include <sys/select.h>
Include <sys/select.h> to fix the following build error seen on mips64el: drm-legacy.c: In function 'legacy_run': drm-legacy.c:45:2: error: unknown type name 'fd_set' fd_set fds; ^ drm-legacy.c:55:2: warning: implicit declaration of function 'FD_ZERO' [-Wimplicit-function-declaration] FD_ZERO(&fds); ^ drm-legacy.c:56:2: warning: implicit declaration of function 'FD_SET' [-Wimplicit-function-declaration] FD_SET(0, &fds); ^ drm-legacy.c:94:4: warning: implicit declaration of function 'select' [-Wimplicit-function-declaration] ret = select(drm.fd + 1, &fds, NULL, NULL, NULL); ^ drm-legacy.c:101:4: warning: implicit declaration of function 'FD_ISSET' [-Wimplicit-function-declaration] } else if (FD_ISSET(0, &fds)) { ^ Signed-off-by: Fabio Estevam <festevam@gmail.com> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Diffstat (limited to 'drm-legacy.c')
-rw-r--r--drm-legacy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drm-legacy.c b/drm-legacy.c
index 8e49075..8eac417 100644
--- a/drm-legacy.c
+++ b/drm-legacy.c
@@ -24,6 +24,7 @@
#include <errno.h>
#include <stdio.h>
#include <string.h>
+#include <sys/select.h>
#include "common.h"
#include "drm-common.h"