From c61852a02bd2d61682235ba3185173f527313827 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Wed, 29 Nov 2006 11:09:43 +0000 Subject: fix support for globally disabling --long-options. (disabling them saves ~4K on fully configured bbox) --- include/libbb.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/libbb.h') diff --git a/include/libbb.h b/include/libbb.h index baab748..f891e1b 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -333,7 +333,9 @@ extern unsigned uidgid_get(struct bb_uidgid_t*, const char* /*, unsigned*/); enum { BB_GETOPT_ERROR = 0x80000000 }; extern const char *opt_complementary; +#if ENABLE_GETOPT_LONG extern const struct option *applet_long_options; +#endif extern uint32_t option_mask32; extern uint32_t getopt32(int argc, char **argv, const char *applet_opts, ...); @@ -369,7 +371,7 @@ extern void bb_herror_msg_and_die(const char *s, ...) __attribute__ ((noreturn, extern void bb_perror_nomsg_and_die(void) ATTRIBUTE_NORETURN; extern void bb_perror_nomsg(void); extern void bb_info_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))); -/* These two are used internally -- you shouldn't need to use them */ +/* These are used internally -- you shouldn't need to use them */ extern void bb_verror_msg(const char *s, va_list p, const char *strerr); extern void bb_vperror_msg(const char *s, va_list p); extern void bb_vinfo_msg(const char *s, va_list p); -- cgit v1.1