]> The Tcpdump Group git mirrors - libpcap/blobdiff - fmtutils.h
rpcap: fix sock_open() issues.
[libpcap] / fmtutils.h
index ba0f66ca06846bbed90514b30022d63c76619762..4fa344865205911753ffbb0438f2f51ee1ed2580 100644 (file)
@@ -34,6 +34,8 @@
 #ifndef fmtutils_h
 #define        fmtutils_h
 
+#include <stdarg.h>    /* we declare varargs functions */
+
 #include "pcap/funcattrs.h"
 
 #ifdef __cplusplus
@@ -44,10 +46,14 @@ void        pcap_fmt_set_encoding(unsigned int);
 
 void   pcap_fmt_errmsg_for_errno(char *, size_t, int,
     PCAP_FORMAT_STRING(const char *), ...) PCAP_PRINTFLIKE(4, 5);
+void   pcap_vfmt_errmsg_for_errno(char *, size_t, int,
+    PCAP_FORMAT_STRING(const char *), va_list) PCAP_PRINTFLIKE(4, 0);
 
 #ifdef _WIN32
 void   pcap_fmt_errmsg_for_win32_err(char *, size_t, DWORD,
     PCAP_FORMAT_STRING(const char *), ...) PCAP_PRINTFLIKE(4, 5);
+void   pcap_vfmt_errmsg_for_win32_err(char *, size_t, DWORD,
+    PCAP_FORMAT_STRING(const char *), va_list) PCAP_PRINTFLIKE(4, 0);
 #endif
 
 #ifdef __cplusplus