]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
Include asprintf.h in rrd_info.c for MSVC builds
authorWolfgang Stöggl <c72578@yahoo.de>
Sat, 6 Jul 2019 03:45:20 +0000 (05:45 +0200)
committerTobias Oetiker <tobi@oetiker.ch>
Mon, 8 Jul 2019 06:23:39 +0000 (08:23 +0200)
- Fixes the following MSVC level 3 compiler warning:
  rrd_info.c(21): warning C4013: 'vasprintf' undefined;
  assuming extern returning int
- This is a follow-up to PR #828 and commit b1bcbca

src/rrd_info.c

index ea383fc04c7b01c27a31f96501a4909c77554f42..76277e8404b81750ad1292aff008de13b330ab2e 100644 (file)
@@ -8,6 +8,9 @@
 #include "rrd_rpncalc.h"
 #include "rrd_client.h"
 #include <stdarg.h>
+#ifdef _MSC_VER
+#include "asprintf.h"   /* for vasprintf() here */
+#endif
 
 /* allocate memory for string */
 char     *sprintf_alloc(