Commit e72f8544 authored by Fabio Estevam's avatar Fabio Estevam Committed by Eric Engestrom

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: 's avatarFabio Estevam <festevam@gmail.com>
Reviewed-by: 's avatarEric Engestrom <eric.engestrom@imgtec.com>
parent b88a44d9
......@@ -24,6 +24,7 @@
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <sys/select.h>
#include "common.h"
#include "drm-common.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment