summaryrefslogtreecommitdiffstats
path: root/acinclude.m4
diff options
context:
space:
mode:
authorMichal Privoznik <mprivozn@redhat.com>2013-02-04 14:56:59 +0100
committerMichal Privoznik <mprivozn@redhat.com>2013-02-04 14:56:59 +0100
commitbd84ea26ea94ba716ca60261e9f2059bf5806310 (patch)
treea8ee46aa5cf0e2cb6e1482fa7d84aaee49c3264f /acinclude.m4
parent1648363b853e9112ae85e458e53376e5323dbc6c (diff)
downloadvirt-viewer-bd84ea26ea94ba716ca60261e9f2059bf5806310.tar.gz
virt-viewer-bd84ea26ea94ba716ca60261e9f2059bf5806310.tar.xz
virt-viewer-bd84ea26ea94ba716ca60261e9f2059bf5806310.zip
Don't redefine _FORTIFY_SOURCE macro
If the _FORTIFY_SOURCE has been already defined, we unconditionally redefine it, leaving us with warning/error thrown at compilation time.
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 0c308bc..625413f 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -46,7 +46,7 @@ AC_DEFUN([VIRT_VIEWER_COMPILE_WARNINGS],[
AH_VERBATIM([FORTIFY_SOURCE],
[/* Enable compile-time and run-time bounds-checking, and some warnings. */
- #if defined __OPTIMIZE__ && __OPTIMIZE__
+ #if !defined _FORTIFY_SOURCE && defined __OPTIMIZE__ && __OPTIMIZE__
# define _FORTIFY_SOURCE 2
#endif
])