mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-13 02:42:58 +01:00
Merge pull request #3095 from bluca/sunstudio_linux
Problem: building on Linux with Sun Studio still fails
This commit is contained in:
commit
df2fe88b92
@ -315,6 +315,12 @@ case "${host_os}" in
|
||||
;;
|
||||
esac
|
||||
|
||||
# Sun Studio does not like anonymous structures in unions
|
||||
if test "x$libzmq_cv_[]_AC_LANG_ABBREV[]_sun_studio_compiler" = "xyes"; then
|
||||
CXXFLAGS="${CXXFLAGS} -features=extensions"
|
||||
CFLAGS="${CFLAGS} -features=extensions"
|
||||
fi
|
||||
|
||||
# Checks for libraries
|
||||
AC_CHECK_LIB([pthread], [pthread_create])
|
||||
AC_CHECK_LIB([rt], [clock_gettime])
|
||||
|
@ -266,7 +266,11 @@ struct atomic_value_t
|
||||
return (int) (ptrdiff_t) atomic_cas ((void **) &value, 0, 0
|
||||
#if defined ZMQ_ATOMIC_PTR_MUTEX
|
||||
,
|
||||
#if defined __SUNPRO_CC
|
||||
const_cast<mutex_t &> (sync)
|
||||
#else
|
||||
sync
|
||||
#endif
|
||||
#endif
|
||||
);
|
||||
#endif
|
||||
|
@ -40,7 +40,7 @@
|
||||
#define ZMQ_PUSH_OR_EMPLACE_BACK emplace_back
|
||||
#define ZMQ_MOVE(x) std::move (x)
|
||||
#else
|
||||
#if defined ZMQ_HAVE_SOLARIS
|
||||
#if defined __SUNPRO_CC
|
||||
template <typename K, typename V>
|
||||
std::pair<const K, V> make_pair_fix_const (const K &k, const V &v)
|
||||
{
|
||||
|
@ -387,7 +387,7 @@ int zmq::wsa_error_to_errno (int errcode)
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_LIBUNWIND
|
||||
#if defined(HAVE_LIBUNWIND) && !defined(__SUNPRO_CC)
|
||||
|
||||
#define UNW_LOCAL_ONLY
|
||||
#include <libunwind.h>
|
||||
|
@ -138,6 +138,7 @@ zmq::ipc_listener_t::ipc_listener_t (io_thread_t *io_thread_,
|
||||
io_object_t (io_thread_),
|
||||
has_file (false),
|
||||
s (retired_fd),
|
||||
handle ((handle_t) NULL),
|
||||
socket (socket_)
|
||||
{
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user