From 8e852b47763025295bd0af36603e31578cf36558 Mon Sep 17 00:00:00 2001 From: Yu Haidong Date: Tue, 24 Dec 2013 11:01:20 +0800 Subject: [PATCH] Add extern "C" around on HPUX platform. On hpux platform, functions(such as `if_nametoindex` and `if_indextoname`) in doesn't declare with `extern "C"`. Fix this bug by add `extern "C"`. See http://www.boost.org/doc/libs/1_40_0/boost/asio/detail/socket_ops.hpp --- Net/include/Poco/Net/SocketDefs.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Net/include/Poco/Net/SocketDefs.h b/Net/include/Poco/Net/SocketDefs.h index bdc9923e0..ab3f6daa3 100644 --- a/Net/include/Poco/Net/SocketDefs.h +++ b/Net/include/Poco/Net/SocketDefs.h @@ -179,6 +179,11 @@ extern unsigned int if_nametoindex (__const char *__ifname) __THROW; extern char *if_indextoname (unsigned int __ifindex, char *__ifname) __THROW; } + #elif (POCO_OS == POCO_OS_HPUX) + extern "C" + { + #include + } #else #include #endif