diff options
| author | Roy Marples <roy@marples.name> | 2015-12-31 16:27:44 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2015-12-31 16:27:44 +0000 |
| commit | 3eeb66d7bde9cff68cc0561bb5ba748cba84cc3d (patch) | |
| tree | 3f88862dda1737b2370292e215be658c2a49787c /if.c | |
| parent | ad8c369e123f06d5ec6972d42816b343746f6c01 (diff) | |
| download | dhcpcd-3eeb66d7bde9cff68cc0561bb5ba748cba84cc3d.tar.xz | |
Remove FreeBSD specific defines and include the needed headers via config.h.
This allows better compile for derivatives such as kFreeBSD.
For kFreeBSD, also define BSD.
Fixes [1987e7b3a3].
Diffstat (limited to 'if.c')
| -rw-r--r-- | if.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -30,12 +30,11 @@ #include <sys/ioctl.h> #include <sys/socket.h> +#include "config.h" + #include <net/if.h> #include <net/if_arp.h> #include <netinet/in.h> -#ifdef __FreeBSD__ /* Needed so that including netinet6/in6_var.h works */ -# include <net/if_var.h> -#endif #ifdef AF_LINK # include <net/if_dl.h> # include <net/if_types.h> @@ -60,7 +59,6 @@ #include <unistd.h> #include <fcntl.h> -#include "config.h" #include "common.h" #include "dev.h" #include "dhcp.h" |
