From 1c4dd10d70ba9ed6dead6cc56cd0f572627cf619 Mon Sep 17 00:00:00 2001 From: Karl DeBisschop Date: Fri, 8 Nov 2002 07:20:05 +0000 Subject: patches required to build on solaris with asprintf and gettimeofday git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@174 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/common.h.in | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'plugins/common.h.in') diff --git a/plugins/common.h.in b/plugins/common.h.in index 72817028..535ae4a0 100644 --- a/plugins/common.h.in +++ b/plugins/common.h.in @@ -87,6 +87,22 @@ # 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 -- cgit v1.2.3-74-g34f1