diff options
Diffstat (limited to 'dev-util/autoproject/files/autoproject-0.20_p15-getopt-cxx-conflict-noexcept.patch')
-rw-r--r-- | dev-util/autoproject/files/autoproject-0.20_p15-getopt-cxx-conflict-noexcept.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/dev-util/autoproject/files/autoproject-0.20_p15-getopt-cxx-conflict-noexcept.patch b/dev-util/autoproject/files/autoproject-0.20_p15-getopt-cxx-conflict-noexcept.patch new file mode 100644 index 000000000000..d881b7275ca3 --- /dev/null +++ b/dev-util/autoproject/files/autoproject-0.20_p15-getopt-cxx-conflict-noexcept.patch @@ -0,0 +1,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__ */ |