diff options
author | Jakub Jelinek <jakub@redhat.com> | 2009-03-09 14:35:26 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2009-03-09 14:35:26 +0000 |
commit | 5c1d419918b3637170da9a5592049048aaf0ee49 (patch) | |
tree | 8ad672f8707275fdbeaf5b8a45eeb2bc8144623a /posix/getopt.h | |
parent | 48da74123eca38beeaec03d3d46ba09f069ef7dc (diff) |
Updated to fedora-glibc-20090309T1421cvs/fedora-glibc-2_9_90-9
Diffstat (limited to 'posix/getopt.h')
-rw-r--r-- | posix/getopt.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/posix/getopt.h b/posix/getopt.h index b7a026c535..ff0251dec0 100644 --- a/posix/getopt.h +++ b/posix/getopt.h @@ -1,5 +1,5 @@ /* Declarations for getopt. - Copyright (C) 1989-1994,1996-1999,2001,2003,2004 + Copyright (C) 1989-1994,1996-1999,2001,2003,2004,2009 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -151,6 +151,22 @@ struct option errors, only prototype getopt for the GNU C library. */ extern int getopt (int ___argc, char *const *___argv, const char *__shortopts) __THROW; + +# if defined __need_getopt && defined __USE_POSIX2 \ + && !defined __USE_POSIX_IMPLICITLY && !defined __USE_GNU +/* The GNU getopt has more functionality than the standard version. The + additional functionality can be disable at runtime. This redirection + helps to also do this at runtime. */ +# ifdef __REDIRECT + extern int __REDIRECT (getopt, (int ___argc, char *const *___argv, + const char *__shortopts), + __posix_getopt) __THROW; +# else +extern int __posix_getopt (int ___argc, char *const *___argv, + const char *__shortopts) __THROW; +# define getopt __posix_getopt +# endif +# endif #else /* not __GNU_LIBRARY__ */ extern int getopt (); #endif /* __GNU_LIBRARY__ */ |