Do not define bswap32 on FreebSD (and OpenBSD I guess). Then, netinet/tcp.h
requires sys/types.h
This commit is contained in:
parent
283b8672a2
commit
61c1ac9ab4
@ -80,7 +80,7 @@
|
||||
#define MAX_NET_RES (1L << 16)
|
||||
//extern int log_level;
|
||||
|
||||
#ifndef HAVE___BUILTIN_BSWAP32
|
||||
#if !defined(HAVE___BUILTIN_BSWAP32) && !defined(__FreeBSD__) && !defined(__OpenBSD__)
|
||||
static inline unsigned __builtin_bswap32(unsigned x) {
|
||||
return ((x << 24) & 0xff000000 ) |
|
||||
((x << 8) & 0x00ff0000 ) |
|
||||
|
Loading…
Reference in New Issue
Block a user