Bug 3775

Summary: !ENABLE_FEATURE_GETOPT_LONG should not include getopt.h
Product: Busybox Reporter: Alexander Clouter <alex+buildroot>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: minor CC: busybox-cvs
Priority: P5    
Version: 1.18.x   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:
Attachments: fix !ENABLE_FEATURE_GETOPT_LONG build

Description Alexander Clouter 2011-05-24 20:55:53 UTC
Created attachment 3313 [details]
fix !ENABLE_FEATURE_GETOPT_LONG build

When compiling with !ENABLE_FEATURE_GETOPT_LONG, busybox still tries to include getopt.h which is not available; for example with uClibc when !UCLIBC_HAS_GETOPT_LONG.  getopt.h is only required for the _long set of functions according to my 'man 3 getopt' at least.

The attached patch fixes up what seemsto me the remaining two broken spots.
Comment 1 Denys Vlasenko 2011-05-29 02:25:25 UTC
Thanks!

Fixed in git by commit 488dd7086925b83bb36568965558221e04d2cc91
Comment 2 Denys Vlasenko 2011-08-13 10:39:34 UTC
Fix available in 1.19.0