diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2014-11-12 10:11:13 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2014-11-12 10:11:13 +0200 |
commit | 20b2458ba07a9190cfd5bc942da604482036a5b0 (patch) | |
tree | b843937852a4478931fbe7eb31dac6ffe3bcc2da /getopt.h | |
parent | f23d62da85fad992feeddd630ce07f0214df7029 (diff) | |
parent | d268465c69afb15db91f9dd0cb07131ef7ba9c45 (diff) | |
download | egawk-20b2458ba07a9190cfd5bc942da604482036a5b0.tar.gz egawk-20b2458ba07a9190cfd5bc942da604482036a5b0.tar.bz2 egawk-20b2458ba07a9190cfd5bc942da604482036a5b0.zip |
Merge branch 'gawk-4.1-stable'
Diffstat (limited to 'getopt.h')
-rw-r--r-- | getopt.h | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -48,6 +48,21 @@ extern "C" { #endif +#ifdef __KLIBC__ +/* OS/2 kLIBC has already getopt(). So to avoid name clash, rename + them here. */ + +# define optarg gawk_optarg +# define optind gawk_optind +# define opterr gawk_opterr +# define optopt gawk_optopt + +# define getopt gawk_getopt +# define getopt_long gawk_getopt_long +# define getopt_long_only gawk_getopt_long_only +#endif + + /* For communication from `getopt' to the caller. When `getopt' finds an option that takes an argument, the argument value is returned here. |