about summary refs log tree commit diff
path: root/posix
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2010-06-14 08:18:26 -0700
committerPetr Baudis <pasky@suse.cz>2010-11-01 22:03:00 +0100
commitf4b045b4b91642b18bc5cb7721d2a2bcef1aedc6 (patch)
treea273f2d93d23a70bed212d1737387b197bb39b2b /posix
parent21580967038a0150e330e56508ec4f04fdf0f490 (diff)
downloadglibc-f4b045b4b91642b18bc5cb7721d2a2bcef1aedc6.tar.gz
glibc-f4b045b4b91642b18bc5cb7721d2a2bcef1aedc6.tar.xz
glibc-f4b045b4b91642b18bc5cb7721d2a2bcef1aedc6.zip
Fix a couple of __REDIRECT () __THROW occurrences
This patch fixes some cases which fail to parse with C++.
(cherry picked from commit f32f28695d938597ad93177dc83225dcb3c69f74)
Diffstat (limited to 'posix')
-rw-r--r--posix/getopt.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/posix/getopt.h b/posix/getopt.h
index ff0251dec0..6e2fa27180 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,2009
+   Copyright (C) 1989-1994,1996-1999,2001,2003,2004,2009,2010
    Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
@@ -158,9 +158,9 @@ extern int getopt (int ___argc, char *const *___argv, const char *__shortopts)
    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;
+  extern int __REDIRECT_NTH (getopt, (int ___argc, char *const *___argv,
+				      const char *__shortopts),
+			     __posix_getopt);
 #  else
 extern int __posix_getopt (int ___argc, char *const *___argv,
 			   const char *__shortopts) __THROW;