gnulib: add gnulib modules

Some systems, such as freebsd, does not have program_invocation_short_name
available.  There are also problems finding AF_INET{,6} definitions.

CC: Peter Fraser <p_fraser@hotmail.com>
Reported-by: Ryan Steinmetz <zi@freebsd.org>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2013-05-10 23:50:02 +01:00
parent 0002aa57e6
commit 8dba1c749d
7 changed files with 20 additions and 5 deletions

View file

@ -53,6 +53,7 @@
#include "close-stream.h"
#include "dhcpd-pools.h"
#include "progname.h"
#include "strftime.h"
/*! \brief Text output format, which is the default.
@ -1063,11 +1064,11 @@ int output_alarming(void)
if (0 < rc || 0 < sc) {
ret_val = 2;
fprintf(outfile, "CRITICAL: %s: ",
program_invocation_short_name);
program_name);
} else if (0 < rw || 0 < sw) {
ret_val = 1;
fprintf(outfile, "WARNING: %s: ",
program_invocation_short_name);
program_name);
} else {
ret_val = 0;
fprintf(outfile, "OK: ");