[PATCH 3/5] gthr-vxworks.c: add include of taskLib.h
Olivier Hainque
hainque@adacore.com
Fri Jun 12 07:29:40 GMT 2020
Hi Rasmus,
(switched from gcc to gcc-patches list)
> On 26 May 2020, at 16:52, Rasmus Villemoes <rv@rasmusvillemoes.dk> wrote:
>
> Fix
>
> gcc-src/libgcc/config/gthr-vxworks.c:65:7: warning: implicit declaration of function 'taskDelay'; did you mean 'sysDelay'? [-Wimplicit-function-declaration]
> 65 | taskDelay (1);
> --- a/libgcc/config/gthr-vxworks.c
> +++ b/libgcc/config/gthr-vxworks.c
> @@ -33,6 +33,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
> #if defined(__GTHREADS)
>
> #include <vxWorks.h>
> +#include <taskLib.h>
>
> #ifndef __RTP__
> # include <vxLib.h>
Ok (with a ChangeLog),
Thanks,
Olivier
More information about the Gcc-patches
mailing list