File nagios-plugins.asprintf.patch of Package nagios-plugins

---
 plugins/check_http.c |    2 ++
 plugins/check_tcp.c  |    2 ++
 2 files changed, 4 insertions(+)

Index: plugins/check_http.c
===================================================================
--- plugins/check_http.c.orig	2009-11-24 23:08:36.469619000 +0100
+++ plugins/check_http.c	2009-11-24 23:08:36.907613000 +0100
@@ -37,6 +37,8 @@ const char *progname = "check_http";
 const char *copyright = "1999-2008";
 const char *email = "nagiosplug-devel@lists.sourceforge.net";
 
+#define _GNU_SOURCE
+#include <stdio.h>
 #include <ctype.h>
 #include "common.h"
 #include "netutils.h"
Index: plugins/check_tcp.c
===================================================================
--- plugins/check_tcp.c.orig	2009-11-24 23:08:36.476611000 +0100
+++ plugins/check_tcp.c	2009-11-24 23:08:36.911613000 +0100
@@ -32,6 +32,8 @@ char *progname;
 const char *copyright = "1999-2008";
 const char *email = "nagiosplug-devel@lists.sourceforge.net";
 
+#define _GNU_SOURCE
+#include <stdio.h>
 #include <ctype.h>
 #include "common.h"
 #include "netutils.h"