Madhavan Srinivasan <ma...@linux.ibm.com> writes:

> Since termio interface is now obsolete, include/uapi/asm/ioctls.h
> has some constant macros referring to "struct termio", this caused
> build failure at userspace.
>
> In file included from /usr/include/asm/ioctl.h:12,
>                  from /usr/include/asm/ioctls.h:5,
>                  from tst-ioctls.c:3:
> tst-ioctls.c: In function 'get_TCGETA':
> tst-ioctls.c:12:10: error: invalid application of 'sizeof' to incomplete type 
> 'struct termio'
>    12 |   return TCGETA;
>       |          ^~~~~~
>
> Even though termios.h provides "struct termio", trying to juggle definitions 
> around to
> make it compile could introduce regressions. So better to open code it.
>
> Reported-by: Tulio Magno <tul...@ascii.art.br>
> Closes: https://lore.kernel.org/linuxppc-dev/8734dji5wl....@ascii.art.br/
> Suggested-by: Nicholas Piggin <npig...@gmail.com>
> Signed-off-by: Madhavan Srinivasan <ma...@linux.ibm.com>

I've tested and confirmed this patch does fix the issue.

Tested-by: Tulio Magno Quites Machado Filho <tul...@redhat.com>

Thank you!

-- 
Tulio Magno

Reply via email to