[Piglit] [PATCH 6/8] config.h.in: add define for HAVE_STRNDUP

Ian Romanick idr at freedesktop.org
Tue Oct 1 10:58:26 PDT 2013


On 09/30/2013 08:11 PM, Kenney Phillis wrote:
> This fixes compile problems on various systems where strndup
> can be found but the HAVE_STRNDUP define is not being set.
> 
> V2: Made the changes that Petri Latvala suggested. However the
>     exact line for the define of HAVE_STRNDUP needed to be
>     placed next to the other function defines in config.h.in

Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>

Thanks. :)

> ---
>  tests/util/config.h.in |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/tests/util/config.h.in b/tests/util/config.h.in
> index b664adc..2e8262a 100644
> --- a/tests/util/config.h.in
> +++ b/tests/util/config.h.in
> @@ -1,6 +1,7 @@
>  #cmakedefine HAVE_STRCHRNUL
>  #cmakedefine HAVE_FOPEN_S
>  #cmakedefine HAVE_SETRLIMIT
> +#cmakedefine HAVE_STRNDUP
>  
>  #cmakedefine HAVE_FCNTL_H
>  #cmakedefine HAVE_SYS_STAT_H
> 



More information about the Piglit mailing list