[jdk18] RFR: 8279370: jdk.jpackage/share/native/applauncher/JvmLauncher.cpp fails to build with GCC 6.3.0

Aleksey Shipilev shade at openjdk.java.net
Thu Jan 13 08:54:41 UTC 2022


On Mon, 3 Jan 2022 08:10:27 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> Seems like a missing include. C++ docs say `offsetof` is from `<cstddef>`, adding that include explicitly fixes the build. Seems to only happen with older GCCs, but it seems to be a happy accident it works on newer ones, probably through the transitive include somewhere.
> 
> Additional testing:
>  - [x] Linux x86_64 fastdebug `tools/jpackage` tests
>  - [x]  Linux x86_64 release `tools/jpackage` tests

Thank you!

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

PR: https://git.openjdk.java.net/jdk18/pull/74


More information about the core-libs-dev mailing list