[Listener] Define le*toh() for OpenBSD

OpenBSD's endian.h uses the names letoh* instead of le*toh.
This commit is contained in:
Matteo Cypriani 2011-06-27 10:03:15 +02:00
parent 306e855ad1
commit 02da7c7851
1 changed files with 4 additions and 0 deletions

View File

@ -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__