mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-27 15:41:05 +08:00
da31917f4f
Relicense permission collected from all relevant authors as tallied at: https://github.com/rlenferink/libzmq-relicense/blob/master/checklist.md The relicense grants are collected under RELICENSE/ and will be moved to the above repository in a later commit. Fixes https://github.com/zeromq/libzmq/issues/2376
53 lines
1.4 KiB
C++
53 lines
1.4 KiB
C++
/* SPDX-License-Identifier: MPL-2.0 */
|
|
|
|
#ifndef __ZMQ_PLATFORM_HPP_INCLUDED__
|
|
#define __ZMQ_PLATFORM_HPP_INCLUDED__
|
|
|
|
// This file provides the configuration for Linux, Windows, and OS/X
|
|
// as determined by ZMQ_HAVE_XXX macros passed from project.gyp
|
|
|
|
// Check that we're being called from our gyp makefile
|
|
#ifndef ZMQ_GYP_BUILD
|
|
# error "foreign platform.hpp detected, please re-configure"
|
|
#endif
|
|
|
|
// Set for all platforms
|
|
#define ZMQ_HAVE_CURVE 1
|
|
|
|
#if defined ZMQ_HAVE_WINDOWS
|
|
# define ZMQ_USE_SELECT 1
|
|
|
|
#elif defined ZMQ_HAVE_OSX
|
|
# define ZMQ_USE_KQUEUE 1
|
|
# define HAVE_POSIX_MEMALIGN 1
|
|
# define ZMQ_HAVE_IFADDRS 1
|
|
# define ZMQ_HAVE_SO_KEEPALIVE 1
|
|
# define ZMQ_HAVE_TCP_KEEPALIVE 1
|
|
# define ZMQ_HAVE_TCP_KEEPCNT 1
|
|
# define ZMQ_HAVE_TCP_KEEPINTVL 1
|
|
# define ZMQ_HAVE_UIO 1
|
|
# define HAVE_FORK 1
|
|
|
|
#elif defined ZMQ_HAVE_LINUX
|
|
# define ZMQ_USE_EPOLL 1
|
|
# define HAVE_POSIX_MEMALIGN 1
|
|
# define ZMQ_HAVE_EVENTFD 1
|
|
# define ZMQ_HAVE_IFADDRS 1
|
|
# define ZMQ_HAVE_SOCK_CLOEXEC 1
|
|
# define ZMQ_HAVE_SO_BINDTODEVICE 1
|
|
# define ZMQ_HAVE_SO_KEEPALIVE 1
|
|
# define ZMQ_HAVE_SO_PEERCRED 1
|
|
# define ZMQ_HAVE_TCP_KEEPCNT 1
|
|
# define ZMQ_HAVE_TCP_KEEPIDLE 1
|
|
# define ZMQ_HAVE_TCP_KEEPINTVL 1
|
|
# define ZMQ_HAVE_UIO 1
|
|
# define HAVE_CLOCK_GETTIME 1
|
|
# define HAVE_FORK 1
|
|
# define HAVE_ACCEPT4 1
|
|
|
|
#else
|
|
# error "No platform defined, abandoning"
|
|
#endif
|
|
|
|
#endif
|