diff options
| author | Roy Marples <roy@marples.name> | 2014-05-21 23:07:52 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2014-05-21 23:07:52 +0000 |
| commit | 26c177737ee4c0c6dbe0bd33208a25574073c4b1 (patch) | |
| tree | 940f22ddb6a2e870bbdb91f2ac9ec67827eb203b /if.c | |
| parent | d8cb89586bb3eb504a0ba71177731e1f4aeb538b (diff) | |
| download | dhcpcd-26c177737ee4c0c6dbe0bd33208a25574073c4b1.tar.xz | |
Source now compiles on Solaris, just missing the if-sun.c support so
linking fails.
Diffstat (limited to 'if.c')
| -rw-r--r-- | if.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -341,15 +341,23 @@ if_discover(struct dhcpcd_ctx *ctx, int argc, char * const *argv) ifp->index = sdl->sdl_index; sdl_type = sdl->sdl_type; switch(sdl->sdl_type) { +#ifdef IFT_BRIDGE case IFT_BRIDGE: /* FALLTHROUGH */ +#endif +#ifdef IFT_L2VLAN case IFT_L2VLAN: /* FALLTHOUGH */ +#endif +#ifdef IFT_L3IPVLAN case IFT_L3IPVLAN: /* FALLTHROUGH */ +#endif case IFT_ETHER: ifp->family = ARPHRD_ETHER; break; +#ifdef IFT_IEEE1394 case IFT_IEEE1394: ifp->family = ARPHRD_IEEE1394; break; +#endif #ifdef IFT_INFINIBAND case IFT_INFINIBAND: ifp->family = ARPHRD_INFINIBAND; |
