[Mesa-dev] [PATCH] configure.ac: Do not check for clock_gettime on MinGW.

Matt Turner mattst88 at gmail.com
Mon Feb 18 22:48:59 PST 2013


On Mon, Feb 18, 2013 at 10:06 PM, Vinson Lee <vlee at freedesktop.org> wrote:
> MinGW does not have clock_gettime.
>
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
> ---
>  configure.ac | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/configure.ac b/configure.ac
> index 16c2f8c..57d3a70 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -502,6 +502,8 @@ AC_SUBST([DLOPEN_LIBS])
>  case "$host_os" in
>  darwin*)
>      ;;
> +mingw*)
> +    ;;
>  *)
>      AC_CHECK_FUNCS([clock_gettime], [CLOCK_LIB=],
>                     [AC_CHECK_LIB([rt], [clock_gettime], [CLOCK_LIB=-lrt],
> --
> 1.8.1.2

I think you can just do

darwin*|mingw*)
    ;;


More information about the mesa-dev mailing list