From c923f422b1e455bdd8ec3bdb10d005e3bfbacfe0 Mon Sep 17 00:00:00 2001 From: nicoo Date: Sun, 23 Feb 2020 15:31:16 +0100 Subject: New upstream version 1.3.1 --- openbsd-compat/openbsd-compat.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'openbsd-compat') diff --git a/openbsd-compat/openbsd-compat.h b/openbsd-compat/openbsd-compat.h index d1d8652..bee126c 100644 --- a/openbsd-compat/openbsd-compat.h +++ b/openbsd-compat/openbsd-compat.h @@ -18,6 +18,7 @@ #if defined(__APPLE__) && !defined(HAVE_ENDIAN_H) #include #define be16toh(x) OSSwapBigToHostInt16((x)) +#define htobe16(x) OSSwapHostToBigInt16((x)) #define be32toh(x) OSSwapBigToHostInt32((x)) #endif /* __APPLE__ && !HAVE_ENDIAN_H */ @@ -27,6 +28,7 @@ #include #endif #define be16toh(x) ntohs((x)) +#define htobe16(x) htons((x)) #define be32toh(x) ntohl((x)) #endif /* _WIN32 && !HAVE_ENDIAN_H */ -- cgit v1.2.3