Fix the build when _GNU_SOURCE is defined to a non-empty value
Fix #3432. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
c6468ee247
commit
a1f9ef0615
2 changed files with 4 additions and 1 deletions
3
ChangeLog.d/_GNU_SOURCE-redefined.txt
Normal file
3
ChangeLog.d/_GNU_SOURCE-redefined.txt
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
Bugfix
|
||||||
|
* Fix the build when the macro _GNU_SOURCE is defined to a non-empty value.
|
||||||
|
Fix #3432.
|
|
@ -17,7 +17,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(__linux__)
|
#if defined(__linux__) && !defined(_GNU_SOURCE)
|
||||||
/* Ensure that syscall() is available even when compiling with -std=c99 */
|
/* Ensure that syscall() is available even when compiling with -std=c99 */
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue