mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 22:58:50 +01:00
Appropriately condition the _le64toh macro definition for OpenBSD.
This corrects a linker error on OpenBSD, where the function is called letoh64. See also http://git.kernel.org/cgit/docs/man-pages/man-pages.git/tree/man3/endian.3#n84.
This commit is contained in:
parent
e1deb01e5f
commit
8999150f71
1 changed files with 5 additions and 1 deletions
|
@ -58,7 +58,11 @@
|
|||
__BYTE_ORDER == __LITTLE_ENDIAN
|
||||
# define _le64toh(x) ((uint64_t)(x))
|
||||
# else
|
||||
# define _le64toh(x) le64toh(x)
|
||||
# if defined(__OpenBSD__)
|
||||
# define _le64toh(x) letoh64(x)
|
||||
# else
|
||||
# define _le64toh(x) le64toh(x)
|
||||
# endif
|
||||
# endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue