1
1

include: Add arpa/inet.h for htonl

This should fix a build warning on FreeBSD.

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Этот коммит содержится в:
Andreas Schneider 2018-06-30 13:12:54 +02:00
родитель a82e24f024
Коммит cf250171de

Просмотреть файл

@ -48,6 +48,10 @@
#include <byteswap.h> #include <byteswap.h>
#endif #endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifndef bswap_32 #ifndef bswap_32
#define bswap_32(x) \ #define bswap_32(x) \
((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >> 8) | \ ((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >> 8) | \