Bug 3619

Summary: Reversed #if tests in networking/interface.c
Product: Busybox Reporter: bugdal
Component: Standard ComplianceAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:
Attachments: Proposed fix.

Description bugdal 2011-04-13 17:07:25 UTC
Created attachment 3217 [details]
Proposed fix.

The current code for getting ethernet.h falls back to using linux/if_ether.h (which is definitely not generic/portable) unless one of a fixed set of systems/libcs known to have net/ethernet.h is detected. A better approach would be to special-case the only known system(s) that lacks net/ethernet.h but has linux/if_ether.h, which is presumably just (some versions of?) uClibc.

This issue affects the ability to build BB against musl.
Comment 1 Denys Vlasenko 2011-04-16 16:32:55 UTC
Applied to git. Thanks!