diff options
| author | Pieter Wuille <[email protected]> | 2012-04-26 15:25:56 -0700 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2012-04-26 15:25:56 -0700 |
| commit | 287ce61dc264ff05a65b1d2c7c70c543152641cc (patch) | |
| tree | f233e082a5f0cbba739fa1af1fa7f465c41e8bbe /src | |
| parent | Define TEST_DATA_DIR so unit tests can be run from any current working directory (diff) | |
| parent | We should include netinet/in.h to use sockaddr_in (POSIX.1-2001) (diff) | |
| download | discoin-287ce61dc264ff05a65b1d2c7c70c543152641cc.tar.xz discoin-287ce61dc264ff05a65b1d2c7c70c543152641cc.zip | |
Merge pull request #1146 from drizztbsd/posix-include
We should include netinet/in.h to use sockaddr_in (POSIX.1-2001)
Diffstat (limited to 'src')
| -rw-r--r-- | src/compat.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/compat.h b/src/compat.h index db340445b..804a8141b 100644 --- a/src/compat.h +++ b/src/compat.h @@ -21,10 +21,8 @@ #include <arpa/inet.h> #include <netdb.h> #include <net/if.h> -#include <ifaddrs.h> -#endif -#ifdef BSD #include <netinet/in.h> +#include <ifaddrs.h> #endif typedef u_int SOCKET; |