]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
Add check for va_copy to configure
authorWolfgang Stöggl <c72578@yahoo.de>
Fri, 12 Jul 2019 13:56:37 +0000 (15:56 +0200)
committerTobias Oetiker <tobi@oetiker.ch>
Sun, 14 Jul 2019 20:36:01 +0000 (22:36 +0200)
So far, configure did not check for va_copy and HAVE_VA_COPY was
undefined. A check for HAVE_VA_COPY is part of rrd_snprintf.c

- Add HW_FUNC_VA_COPY to configure.ac
- MSVC has got va_copy(), so define it in win32/rrd_config.h:
  #define HAVE_VA_COPY 1

configure.ac
win32/rrd_config.h

index 5194eda94d4be0f31d316eb3c6c51d5724882674..f79f1c09f37204b4704a5a221e70ab6f13d49544 100644 (file)
@@ -221,6 +221,7 @@ AC_HEADER_TIME
 AC_STRUCT_TM
 
 dnl figure out 'stuff' about
+HW_FUNC_VA_COPY
 HW_FUNC_VSNPRINTF
 HW_FUNC_SNPRINTF
 HW_FUNC_VASPRINTF
index 862a675ed4049d8ef612593f2cfd3dea9db9a25c..8a6cf2e5d2377b2aa630865edbfa4010892795bc 100644 (file)
 /* Define to 1 if you have the `vasprintf' function. */
 #define HAVE_VASPRINTF 1
 
+/* Define to 1 if you have the `va_copy' function or macro. */
+#define HAVE_VA_COPY 1
+
 /* Misc missing Windows defines */
 #ifndef PATH_MAX    /* PATH_MAX is defined in win32/dirent.h too. Relevant, if included before rrd_config.h */
 #define PATH_MAX _MAX_PATH  /* max. length of full pathname is 260 under Windows, _MAX_PATH is defined in stdlib.h */