[Mesa-dev] [PATCH kmscube] drm-legacy: Include <sys/select.h>

Eric Engestrom eric.engestrom at imgtec.com
Tue Mar 21 12:04:38 UTC 2017


On Monday, 2017-03-20 12:49:07 -0300, Fabio Estevam wrote:
> 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 at gmail.com>

r-b and pushed, thanks!

> ---
>  drm-legacy.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> 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"
> -- 
> 2.7.4
> 


More information about the mesa-dev mailing list