[Listener] Define le*toh() for OpenBSD
OpenBSD's endian.h uses the names letoh* instead of le*toh.
This commit is contained in:
parent
306e855ad1
commit
02da7c7851
|
@ -48,6 +48,10 @@
|
|||
# endif // __BYTE_ORDER
|
||||
#else // __GLIBC__
|
||||
# include <sys/endian.h>
|
||||
# ifdef OpenBSD
|
||||
# define le32toh letoh32
|
||||
# define le16toh letoh16
|
||||
# endif // OpenBSD
|
||||
#endif // __GLIBC__
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue