File ndoutils-2.1.0-add_includes.patch of Package ndoutils

Index: ndoutils-2.1.0/include/db.h
===================================================================
--- ndoutils-2.1.0.orig/include/db.h
+++ ndoutils-2.1.0/include/db.h
@@ -23,6 +23,7 @@
 #ifndef NDO2DB_DB_H_INCLUDED
 #define NDO2DB_DB_H_INCLUDED
 
+#include <stdio.h>
 #include "config.h"
 #include "ndo2db.h"
 
Index: ndoutils-2.1.0/include/dbhandlers.h
===================================================================
--- ndoutils-2.1.0.orig/include/dbhandlers.h
+++ ndoutils-2.1.0/include/dbhandlers.h
@@ -23,6 +23,7 @@
 #ifndef NDO2DB_DBHANDLERS_H_INCLUDED
 #define NDO2DB_DBHANDLERS_H_INCLUDED
 
+#include <stdio.h>
 #include "ndo2db.h"
 #define NAGIOS_SIZEOF_ARRAY(var)       (sizeof(var)/sizeof(var[0]))
 
Index: ndoutils-2.1.0/include/ndo2db.h
===================================================================
--- ndoutils-2.1.0.orig/include/ndo2db.h
+++ ndoutils-2.1.0/include/ndo2db.h
@@ -23,6 +23,7 @@
 #ifndef NDO2DB_NDO2DB_H_INCLUDED
 #define NDO2DB_NDO2DB_H_INCLUDED
 
+#include <stdio.h>
 #include "config.h"
 #include "utils.h"
 
Index: ndoutils-2.1.0/include/ndomod.h
===================================================================
--- ndoutils-2.1.0.orig/include/ndomod.h
+++ ndoutils-2.1.0/include/ndomod.h
@@ -23,6 +23,7 @@
 #ifndef NDO_NDOMOD_H_INCLUDED
 #define NDO_NDOMOD_H_INCLUDED
 
+#include <stdio.h>
 
 /* this is needed for access to daemon's internal data */
 #define NSCORE 1
openSUSE Build Service is sponsored by