diff options
author | nicoo <nicoo@debian.org> | 2020-02-23 15:31:23 +0100 |
---|---|---|
committer | Nicolas Braud-Santoni <nicolas@braud-santoni.eu> | 2020-02-23 15:34:39 +0100 |
commit | 399de849155d9d77d1a5b325afa4b75550c55fb4 (patch) | |
tree | 7a04c6a11d4a92e12e0dfa5c3d6471ebd74af4dd /openbsd-compat/openbsd-compat.h | |
parent | 28215e6c161c70cb1bcae7d01195fefcffb09d32 (diff) | |
parent | c923f422b1e455bdd8ec3bdb10d005e3bfbacfe0 (diff) |
Update upstream source from tag 'upstream/1.3.1'
Update to upstream version '1.3.1'
with Debian dir 96d0ec6cfbe8efa2e15111ccc5e79c78bd725385
Diffstat (limited to 'openbsd-compat/openbsd-compat.h')
-rw-r--r-- | openbsd-compat/openbsd-compat.h | 2 |
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 | ||