zeromq / zeromq3-x

ØMQ/3.2 release branch - bug fixes only

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

socket_base.hpp:105:35: error: 'va_list' has not been declared

ynezz opened this issue · comments

This patches tries to fix following compiler error with gcc 4.7.1/uClibc 0.9.33.2
on ARM (OpenWRT):

    In file included from device.cpp:51:0:
    socket_base.hpp:105:35: error: 'va_list' has not been declared
    make[5]: *** [libzmq_la-device.lo] Error 1
diff --git a/src/socket_base.hpp b/src/socket_base.hpp
index 35d2962..f0ee671 100644
--- a/src/socket_base.hpp
+++ b/src/socket_base.hpp
@@ -25,6 +25,7 @@

 #include <string>
 #include <map>
+#include <cstdarg>

 #include "own.hpp"
 #include "array.hpp"
-- 
1.7.9.5

Hi, to make a change to a stable version please log an issue in the Jira issue tracker, then make a pull request with your commit. It's explained here: http://www.zeromq.org/docs:contributing