File nagios-plugins.asprintf.patch of Package nagios-plugins
--- plugins/check_http.c | 2 ++ plugins/check_tcp.c | 2 ++ 2 files changed, 4 insertions(+) --- a/plugins/check_http.c +++ b/plugins/check_http.c @@ -43,6 +43,8 @@ const char *revision = "$Revision: 1.104 const char *copyright = "1999-2006"; const char *email = "nagiosplug-devel@lists.sourceforge.net"; +#define _GNU_SOURCE +#include <stdio.h> #include <ctype.h> #include "common.h" #include "netutils.h" --- a/plugins/check_tcp.c +++ b/plugins/check_tcp.c @@ -37,6 +37,8 @@ const char *revision = "$Revision: 1.92 const char *copyright = "1999-2006"; const char *email = "nagiosplug-devel@lists.sourceforge.net"; +#define _GNU_SOURCE +#include <stdio.h> #include <ctype.h> #include "common.h" #include "netutils.h"