aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2011-05-29 04:24:13 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2011-05-29 04:24:52 +0200
commit488dd7086925b83bb36568965558221e04d2cc91 (patch)
tree2c4ee47019880b24cb308eef3eb6f9fd211fbafb /libbb
parent217a7f4bf95339a93a217c5806c5b9a48c0027d5 (diff)
downloadbusybox-w32-488dd7086925b83bb36568965558221e04d2cc91.tar.gz
busybox-w32-488dd7086925b83bb36568965558221e04d2cc91.tar.bz2
busybox-w32-488dd7086925b83bb36568965558221e04d2cc91.zip
fix !ENABLE_FEATURE_GETOPT_LONG build. Closes 3775
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. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb')
-rw-r--r--libbb/getopt32.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libbb/getopt32.c b/libbb/getopt32.c
index 18f33c704..c7c4079c2 100644
--- a/libbb/getopt32.c
+++ b/libbb/getopt32.c
@@ -7,7 +7,9 @@
7 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 7 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
8 */ 8 */
9 9
10#include <getopt.h> 10#if ENABLE_LONG_OPTS || ENABLE_FEATURE_GETOPT_LONG
11# include <getopt.h>
12#endif
11#include "libbb.h" 13#include "libbb.h"
12 14
13/* Documentation 15/* Documentation