Use _GNU_SOURCE macro instead of __USE_GNU and define it before including portmacro.h. The reason is that portmacro.h includes limits.h which in-turn includes features.h - this results in __USE_GNU getting incorrectly undefined.
Test Steps
use glibc2.24 and gcc 6.3.0 build sucess
use glibc2.35 and gcc 11.3.0 build sucess
Checklist:
[x] I have tested my changes. No regression in existing tests.
[NA] I have modified and/or added unit-tests to cover the code changes in this Pull Request.
Related Issue
1077
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Description
Use
_GNU_SOURCE
macro instead of__USE_GNU
and define it before including portmacro.h. The reason is that portmacro.h includes limits.h which in-turn includes features.h - this results in__USE_GNU
getting incorrectly undefined.Test Steps
Checklist:
Related Issue
1077
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.