Closed orlitzky closed 6 years ago
I actually just fixed this in NRPE with a neat macro. I'll port it over on the next bugfix release.
Thanks!
So, TIL that you can't just put a definition of _GNU_SOURCE
in a header file and then include that header file elsewhere, according to the documentation (http://man7.org/linux/man-pages/man7/feature_test_macros.7.html).
To quote:
NOTE: In order to be effective, a feature test macro must be defined before including any header files. This can be done either in the compilation command (cc -DMACRO=value) or by defining the macro within the source code before including any headers.
Should be fixed in maint
as of: https://github.com/NagiosEnterprises/ndoutils/commit/eba5b7be13d994b46cc8251586f969eed5383ea8
There's a fix for this in
include/nagios-4x/config.h
:However I still see the following (among others):