RFR: JDK-8305646: compile error on Alpine with gcc12 after 8298619 in libGetXSpace.c

Alan Bateman alanb at openjdk.org
Wed Apr 5 10:58:06 UTC 2023


On Wed, 5 Apr 2023 10:47:17 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

> On Alpine Linux, using gcc12, we run now into this compile warning as error :
> In file included from /openjdk/linuxmuslx86_64/jdk/test/jdk/java/io/File/libGetXSpace.c:31:
> /usr/include/sys/errno.h:1:2: error: #warning redirecting incorrect #include <sys/errno.h> to <errno.h> [-Werror=cpp]
>     1 | #warning redirecting incorrect #include <sys/errno.h> to <errno.h>
>       | ^~~~~~~
> cc1: all warnings being treated as errors
> 
> We probably better just include <errno.h> like it is done at almost all other places in the codebase.

Marked as reviewed by alanb (Reviewer).

-------------

PR Review: https://git.openjdk.org/jdk/pull/13349#pullrequestreview-1372658193


More information about the core-libs-dev mailing list