summaryrefslogtreecommitdiff
path: root/dev-util/autoproject/files/autoproject-0.20_p15-getopt-cxx-conflict-noexcept.patch
blob: d881b7275ca3c3d52372fe4295bfd6e684d25852 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
https://bugs.gentoo.org/872989
--- a/lib/cli/c++/none/getopt.h
+++ b/lib/cli/c++/none/getopt.h
@@ -131,7 +131,7 @@ struct option
 /* Many other libraries have conflicting prototypes for getopt, with
    differences in the consts, in stdlib.h.  To avoid compilation
    errors, only prototype getopt for the GNU C library.  */
-extern int getopt (int __argc, char *const *__argv, const char *__shortopts);
+extern int getopt (int __argc, char *const *__argv, const char *__shortopts) noexcept;
 # else /* not __GNU_LIBRARY__ */
 extern int getopt ();
 # endif /* __GNU_LIBRARY__ */