diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2014-10-12 13:49:11 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2014-11-11 23:14:10 +0200 |
commit | 0a050fa206e5d899f553b6ac492d389cb39591a2 (patch) | |
tree | f34f09369aed47f02088b95458c45f24cefbfed0 /getopt.h | |
parent | b4cf3cc470eb1200ec90fcc7ad5b2d069059cf7e (diff) | |
download | egawk-0a050fa206e5d899f553b6ac492d389cb39591a2.tar.gz egawk-0a050fa206e5d899f553b6ac492d389cb39591a2.tar.bz2 egawk-0a050fa206e5d899f553b6ac492d389cb39591a2.zip |
OS/2 fixes.
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. |