[Mesa-dev] [PATCH] drivers/dri/i965: add missing #include

Eric Engestrom eric.engestrom at intel.com
Tue Jun 12 11:09:13 UTC 2018


On Tuesday, 2018-06-12 11:59:01 +0100, Ross Burton wrote:
> brw_bufmgr.h uses time_t without include time.h, so the build fails under musl.

Indeed, in struct brw_bo.
Reviewed-by: Eric Engestrom <eric.engestrom at intel.com>

... and pushed, thank :)

> ---
>  src/mesa/drivers/dri/i965/brw_bufmgr.h | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/src/mesa/drivers/dri/i965/brw_bufmgr.h b/src/mesa/drivers/dri/i965/brw_bufmgr.h
> index 68f5e0c2c8..5c2702652b 100644
> --- a/src/mesa/drivers/dri/i965/brw_bufmgr.h
> +++ b/src/mesa/drivers/dri/i965/brw_bufmgr.h
> @@ -37,6 +37,8 @@
>  #include <stdbool.h>
>  #include <stdint.h>
>  #include <stdio.h>
> +#include <time.h>
> +
>  #include "util/u_atomic.h"
>  #include "util/list.h"
>  
> -- 
> 2.11.0
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list