summaryrefslogtreecommitdiff
path: root/openbsd-compat/openbsd-compat.h
diff options
context:
space:
mode:
authornicoo <nicoo@debian.org>2020-02-23 14:46:35 +0000
committernicoo <nicoo@debian.org>2020-02-23 14:46:35 +0000
commitf794345c2d734f593da8ed7754e5dbb5809c688d (patch)
tree32889c9b7bd26656242cc5e4b483c8a1deba88e1 /openbsd-compat/openbsd-compat.h
parent28215e6c161c70cb1bcae7d01195fefcffb09d32 (diff)
parent400533f0af0b8119c84e574387ed05e500f63861 (diff)
Merge branch 'prep-v1.3.1-1' into 'debian/sid'
Prepare upload v1.3.1-1 See merge request auth-team/libfido2!3
Diffstat (limited to 'openbsd-compat/openbsd-compat.h')
-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