From ee9ac35fc20294e2950f811f1998a72b1aa20254 Mon Sep 17 00:00:00 2001 From: Ben Lindstrom Date: Sat, 22 Jun 2002 00:26:59 +0000 Subject: - (bal) getopt now can be staticly compiled on those platforms missing optreset. Patch by binder@arago.de --- defines.h | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'defines.h') diff --git a/defines.h b/defines.h index 1f52c545..90825f6b 100644 --- a/defines.h +++ b/defines.h @@ -1,7 +1,7 @@ #ifndef _DEFINES_H #define _DEFINES_H -/* $Id: defines.h,v 1.90 2002/06/07 03:19:36 mouring Exp $ */ +/* $Id: defines.h,v 1.91 2002/06/22 00:27:00 mouring Exp $ */ /* Constants */ @@ -417,7 +417,18 @@ struct winsize { #endif #ifndef HAVE_GETOPT_OPTRESET -#define getopt(ac, av, o) BSDgetopt(ac, av, o) +# undef getopt +# undef opterr +# undef optind +# undef optopt +# undef optreset +# undef optarg +# define getopt(ac, av, o) BSDgetopt(ac, av, o) +# define opterr BSDopterr +# define optind BSDoptind +# define optopt BSDoptopt +# define optreset BSDoptreset +# define optarg BSDoptarg #endif /* In older versions of libpam, pam_strerror takes a single argument */ -- cgit v1.2.3