Bug 1601590 - Undef _FORTIFY_SOURCE to fix build with --warnings-on-errors. r=glandium

This is required on some systems such as Fedora to allow
building with -O0 together with --warnings-as-errors due to
a check in /usr/include/features.h

Differential Revision: https://phabricator.services.mozilla.com/D56696

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Simon Giesecke 2019-12-12 01:59:13 +00:00
parent dc8a21948c
commit 97827bec40

View File

@ -13,6 +13,11 @@
// will stop the post-processing (which includes stack fixing) from working
// correctly.
// This is required on some systems such as Fedora to allow
// building with -O0 together with --warnings-as-errors due to
// a check in /usr/include/features.h
#undef _FORTIFY_SOURCE
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>