$OpenBSD: patch-include_msgpack_sysdep_h,v 1.2 2017/06/13 17:30:18 jasper Exp $

From f2b788e51fc29f5b28bbbb183a2c18f650946d4c Mon Sep 17 00:00:00 2001
From: Jasper Lievisse Adriaanse <jasper@humppa.nl>
Date: Sun, 11 Jun 2017 18:13:10 +0200
Subject: [PATCH] Sprinkle __OpenBSD__: include missing headers and prevent iovec redefinition

Index: include/msgpack/sysdep.h
--- include/msgpack/sysdep.h.orig
+++ include/msgpack/sysdep.h
@@ -77,7 +77,7 @@
 #       endif
 #   endif
 
-#elif defined(unix) || defined(__unix) || defined(__APPLE__)
+#elif defined(unix) || defined(__unix) || defined(__APPLE__) || defined(__OpenBSD__)
 
 #include <arpa/inet.h>  /* __BYTE_ORDER */
 #   if defined(linux)
@@ -88,7 +88,7 @@
 
 #if MSGPACK_ENDIAN_LITTLE_BYTE
 
-#   if defined(unix) || defined(__unix) || defined(__APPLE__)
+#   if defined(unix) || defined(__unix) || defined(__APPLE__) || defined(__OpenBSD__)
 #       define _msgpack_be16(x) ntohs(x)
 #   else
 #       if defined(ntohs)
@@ -102,7 +102,7 @@
 #        endif
 #   endif
 
-#   if defined(unix) || defined(__unix) || defined(__APPLE__)
+#   if defined(unix) || defined(__unix) || defined(__APPLE__) || defined(__OpenBSD__)
 #       define _msgpack_be32(x) ntohl(x)
 #   else
 #       if defined(ntohl)
