Define _FORTIFY_SOURCE in common-defs.h
authorTom Tromey <tom@tromey.com>
Fri, 10 Aug 2018 15:03:47 +0000 (09:03 -0600)
committerTom Tromey <tom@tromey.com>
Mon, 13 Aug 2018 16:02:00 +0000 (10:02 -0600)
commita97b53dda99526d7c2890aeb9637008790cbdfa9
treec443d04035534d5c96bde4def060ae409a496a15
parent98641896ad52915448c0dd1ab4b4bbe23148a582
Define _FORTIFY_SOURCE in common-defs.h

This defines _FORTIFY_SOURCE in common-defs.h.  This seems like a
sensible safety measure, and also it may help avoid build problems
with -Wunused-result on distros that already define _FORTIFY_SOURCE by
default.

Tested by the buildbot.

gdb/ChangeLog
2018-08-13  Tom Tromey  <tom@tromey.com>

* common/common-defs.h (_FORTIFY_SOURCE): Define.
gdb/ChangeLog
gdb/common/common-defs.h