diff options
| author | Fabian Raetz <[email protected]> | 2014-05-02 20:45:03 +0200 |
|---|---|---|
| committer | Fabian Raetz <[email protected]> | 2014-05-02 20:45:03 +0200 |
| commit | 2364b118f2189d1d8d447c199695fefa71952bf8 (patch) | |
| tree | ff524e57ec3cfe4320a162b008e4aab9b47aef28 /src | |
| parent | stop bitcoind/bitcoin-cli processes that might have been left running (diff) | |
| download | discoin-2364b118f2189d1d8d447c199695fefa71952bf8.tar.xz discoin-2364b118f2189d1d8d447c199695fefa71952bf8.zip | |
reorder includes to compile on OpenBSD
From getifaddr(3) manual:
"If both <net/if.h> and <ifaddrs.h> are being
included, <net/if.h> must be included before <ifaddrs.h>"
http://www.openbsd.org/cgi-bin/man.cgi?query=getifaddrs&apropos=0&sektion=0&manpath=OpenBSD+Current&arch=i386&format=html
Diffstat (limited to 'src')
| -rw-r--r-- | src/compat.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/compat.h b/src/compat.h index 3924445b1..8fbafb6cc 100644 --- a/src/compat.h +++ b/src/compat.h @@ -28,16 +28,16 @@ #include <windows.h> #include <ws2tcpip.h> #else +#include <sys/fcntl.h> +#include <sys/mman.h> +#include <sys/socket.h> #include <sys/types.h> +#include <net/if.h> +#include <netinet/in.h> #include <arpa/inet.h> #include <ifaddrs.h> #include <limits.h> -#include <net/if.h> #include <netdb.h> -#include <netinet/in.h> -#include <sys/fcntl.h> -#include <sys/mman.h> -#include <sys/socket.h> #include <unistd.h> #endif |