From: Jakub Jelinek Date: Mon, 18 Oct 2004 22:56:48 +0000 (+0000) Subject: * include/features.h (__USE_FORTIFY_LEVEL): Enable even with X-Git-Tag: cvs/fedora-glibc-2_3_3-70~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ad7eada7b6c1b7c6b81c2dc7e1d7ce170e50b97;p=thirdparty%2Fglibc.git * include/features.h (__USE_FORTIFY_LEVEL): Enable even with Red Hat gcc4 4.0.0 and above. --- diff --git a/ChangeLog b/ChangeLog index 9978171580d..1239e711e86 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-10-19 Jakub Jelinek + + * include/features.h (__USE_FORTIFY_LEVEL): Enable even with + Red Hat gcc4 4.0.0 and above. + 2004-10-18 Jakub Jelinek * malloc/arena.c (ptmalloc_init): Don't use brk if dlopened diff --git a/include/features.h b/include/features.h index 9940304ccb1..7551dcc5cc0 100644 --- a/include/features.h +++ b/include/features.h @@ -262,7 +262,9 @@ # define __USE_REENTRANT 1 #endif -#if _FORTIFY_SOURCE > 0 && __GNUC_PREREQ (4, 1) && __OPTIMIZE__ > 0 +#if _FORTIFY_SOURCE > 0 && __OPTIMIZE__ > 0 \ + && (__GNUC_PREREQ (4, 1) \ + || (defined __GNUC_RH_RELEASE__ && __GNUC_PREREQ (4, 0))) # if _FORTIFY_SOURCE == 1 # define __USE_FORTIFY_LEVEL 1 # elif _FORTIFY_SOURCE > 1