Code

Strip leading spaces on dns return value (689563 - Simon L Nielsen)
[nagiosplug.git] / plugins / common.h.in
index 728170287097f6e033d12bd267136090c677d5bc..48e7f6f4bc3cd08c366ee6f9be2fe3cfdab64b8d 100644 (file)
@@ -66,9 +66,9 @@
 #include <signal.h>
 #endif
 
-/* #ifdef HAVE_GETOPT_H */
+/* TODO: define can be removed when all ifdef in each plugin has been removed */
+#define HAVE_GETOPT_H
 #include <getopt.h>
-/* #endif */
 
 #include <ctype.h>
 
 # define strtoul(a,b,c) (unsigned long)atol((a))
 #endif
 
+#ifndef HAVE_ASPRINTF
+int asprintf(char **strp, const char *fmt, ...);
+#endif
+
+#ifndef HAVE_VASPRINTF
+/* int vasprintf(char **strp, const char *fmt, va_list ap); */
+#endif
+
+#ifndef HAVE_SNPRINTF
+int snprintf(char *str, size_t size, const  char  *format, ...);
+#endif
+
+#ifndef HAVE_VSNPRINTF
+int vsnprintf(char *str, size_t size, const char  *format, va_list ap);
+#endif
+
 /*
  *
  * Standard Values