Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions src/getopt.h
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ struct option
errors, only prototype getopt for the GNU C library. */
extern int getopt (int __argc, char *const *__argv, const char *__shortopts);
# else /* not __GNU_LIBRARY__ */
extern int getopt ();
extern int getopt (int argc, char * const argv[], const char *shortopts);
# endif /* __GNU_LIBRARY__ */

# ifndef __need_getopt
Expand All @@ -161,12 +161,18 @@ extern int _getopt_internal (int __argc, char *const *__argv,
int __long_only);
# endif
#else /* not __STDC__ */
extern int getopt ();
extern int getopt (int argc, char * const argv[], const char *shortopts);
# ifndef __need_getopt
extern int getopt_long ();
extern int getopt_long_only ();
extern int getopt_long (int argc, char *const *argv, const char *shortopts,
const struct option *longopts, int *longind);
extern int getopt_long_only (int argc, char *const *argv,
const char *shortopts,
const struct option *longopts, int *longind);

extern int _getopt_internal ();
extern int _getopt_internal (int __argc, char *const *__argv,
const char *__shortopts,
const struct option *__longopts, int *__longind,
int __long_only);
# endif
#endif /* __STDC__ */

Expand Down
2 changes: 1 addition & 1 deletion src/getopt_long.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ static char *posixly_correct;
whose names are inconsistent. */

#ifndef getenv
extern char *getenv ();
extern char *getenv (const char *name);
#endif

static char *
Expand Down