File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 7777# endif
7878# endif
7979
80- #elif defined(unix ) || defined(__unix ) || defined(__APPLE__ )
80+ #elif defined(unix ) || defined(__unix ) || defined(__APPLE__ ) || defined( __OpenBSD__ )
8181
8282#include <arpa/inet.h> /* __BYTE_ORDER */
8383# if defined(linux )
8888
8989#if MSGPACK_ENDIAN_LITTLE_BYTE
9090
91- # if defined(unix ) || defined(__unix ) || defined(__APPLE__ )
91+ # if defined(unix ) || defined(__unix ) || defined(__APPLE__ ) || defined( __OpenBSD__ )
9292# define _msgpack_be16 (x ) ntohs(x)
9393# else
9494# if defined(ntohs )
102102# endif
103103# endif
104104
105- # if defined(unix ) || defined(__unix ) || defined(__APPLE__ )
105+ # if defined(unix ) || defined(__unix ) || defined(__APPLE__ ) || defined( __OpenBSD__ )
106106# define _msgpack_be32 (x ) ntohl(x)
107107# else
108108# if defined(ntohl )
Original file line number Diff line number Diff line change 11//
22// MessagePack for C++ zero-copy buffer implementation
33//
4- // Copyright (C) 2008-2013 FURUHASHI Sadayuki and KONDO Takatoshi
4+ // Copyright (C) 2008-2017 FURUHASHI Sadayuki and KONDO Takatoshi
55//
66// Distributed under the Boost Software License, Version 1.0.
77// (See accompanying file LICENSE_1_0.txt or copy at
2222#endif
2323#endif // defined(_MSC_VER)
2424
25- #ifndef _WIN32
25+ #if defined(unix) || defined(__unix) || defined(__APPLE__) || defined(__OpenBSD__)
2626#include < sys/uio.h>
2727#else
2828struct iovec {
Original file line number Diff line number Diff line change 1313#include "zone.h"
1414#include <stdlib.h>
1515
16- #if defined(unix ) || defined(__unix ) || defined(__APPLE__ )
16+ #if defined(unix ) || defined(__unix ) || defined(__APPLE__ ) || defined( __OpenBSD__ )
1717#include <sys/uio.h>
1818#else
1919struct iovec {
You can’t perform that action at this time.
0 commit comments