summaryrefslogtreecommitdiff
path: root/openbsd-compat
diff options
context:
space:
mode:
authornicoo <nicoo@debian.org>2020-02-23 15:31:16 +0100
committerNicolas Braud-Santoni <nicolas@braud-santoni.eu>2020-02-23 15:31:16 +0100
commitc923f422b1e455bdd8ec3bdb10d005e3bfbacfe0 (patch)
treefdc9b1a9da716cf0ad70efbeafaf62151f997064 /openbsd-compat
parentc79050aa44b8836d836c5dd22a383a073c28b74b (diff)
New upstream version 1.3.1
Diffstat (limited to 'openbsd-compat')
-rw-r--r--openbsd-compat/openbsd-compat.h2
1 files changed, 2 insertions, 0 deletions
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 @@
18#if defined(__APPLE__) && !defined(HAVE_ENDIAN_H) 18#if defined(__APPLE__) && !defined(HAVE_ENDIAN_H)
19#include <libkern/OSByteOrder.h> 19#include <libkern/OSByteOrder.h>
20#define be16toh(x) OSSwapBigToHostInt16((x)) 20#define be16toh(x) OSSwapBigToHostInt16((x))
21#define htobe16(x) OSSwapHostToBigInt16((x))
21#define be32toh(x) OSSwapBigToHostInt32((x)) 22#define be32toh(x) OSSwapBigToHostInt32((x))
22#endif /* __APPLE__ && !HAVE_ENDIAN_H */ 23#endif /* __APPLE__ && !HAVE_ENDIAN_H */
23 24
@@ -27,6 +28,7 @@
27#include <sys/param.h> 28#include <sys/param.h>
28#endif 29#endif
29#define be16toh(x) ntohs((x)) 30#define be16toh(x) ntohs((x))
31#define htobe16(x) htons((x))
30#define be32toh(x) ntohl((x)) 32#define be32toh(x) ntohl((x))
31#endif /* _WIN32 && !HAVE_ENDIAN_H */ 33#endif /* _WIN32 && !HAVE_ENDIAN_H */
32 34