Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 116526
Collapse All | Expand All

(-)helper.c.orig (+8 lines)
Lines 39-45 Link Here
39
39
40
extern char *optarg;
40
extern char *optarg;
41
extern int optind;
41
extern int optind;
42
#ifdef HAVE_OPTRESET
42
extern int optreset;
43
extern int optreset;
44
#endif
43
45
44
#ifdef UNIX_COMPAT
46
#ifdef UNIX_COMPAT
45
char* solaris_needs_strsep(char** str, char* delims)
47
char* solaris_needs_strsep(char** str, char* delims)
Lines 160-167 Link Here
160
				 *	now use getopt to look for our problem option
162
				 *	now use getopt to look for our problem option
161
				 */
163
				 */
162
#ifdef HAVE_GETOPT
164
#ifdef HAVE_GETOPT
165
#ifdef HAVE_OPTRESET
163
				optreset=1;
166
				optreset=1;
167
#endif
168
#ifdef __GLIBC__
169
				optind=0;
170
#else
164
				optind=1;
171
				optind=1;
172
#endif
165
				/*
173
				/*
166
				 *	tell getopt to only be strict if the 'opts' is well defined
174
				 *	tell getopt to only be strict if the 'opts' is well defined
167
				 */
175
				 */

Return to bug 116526