]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commit
define _DEFAULT_SOURCE alongside _BSD_SOURCE 615/head
authorBenoît Monin <benoit.monin@gmx.fr>
Sun, 26 Apr 2015 12:18:45 +0000 (14:18 +0200)
committerBenoît Monin <benoit.monin@gmx.fr>
Sun, 26 Apr 2015 12:18:45 +0000 (14:18 +0200)
commit86821c4f1d52eb7504c40077227377db11bbff79
tree87e95d46813d2f0c7705e10da9005db5adbe9196
parentc6cfac8b59c7a37c90aa78493a4dbbd81926a7c3
define _DEFAULT_SOURCE alongside _BSD_SOURCE

_BSD_SOURCE deprecated since glibc 2.20 and _DEFAULT_SOURCE should be used
instead. Define both to fix deprecation warning.

Quoting the man page feature_test_macros(7):
Since glibc 2.20, this macro is deprecated.  It now has the same effect as
defining _DEFAULT_SOURCE, but generates a compile-time warning (unless
_DEFAULT_SOURCE is also defined).  Use _DEFAULT_SOURCE instead.  To allow
code that requires _BSD_SOURCE in glibc 2.19 and earlier and _DEFAULT_SOURCE
in glibc 2.20 and later to compile without warnings, define both _BSD_SOURCE
and _DEFAULT_SOURCE.
src/rrd_config_bottom.h