FreeBSD Bugzilla – Attachment 245142 Details for
Bug 274038
devel/avr-gcc: fix build with libc++ 17
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
devel/avr-gcc: fix build with libc++ 17
devel__avr-gcc-fix-libcxx17-build-1.diff (text/plain), 1.36 KB, created by
Dimitry Andric
on 2023-09-23 07:56:16 UTC
(
hide
)
Description:
devel/avr-gcc: fix build with libc++ 17
Filename:
MIME Type:
Creator:
Dimitry Andric
Created:
2023-09-23 07:56:16 UTC
Size:
1.36 KB
patch
obsolete
>diff --git a/devel/avr-gcc/files/patch-gcc_system.h b/devel/avr-gcc/files/patch-gcc_system.h >new file mode 100644 >index 000000000000..70cedcb9fbe8 >--- /dev/null >+++ b/devel/avr-gcc/files/patch-gcc_system.h >@@ -0,0 +1,42 @@ >+--- gcc/system.h.orig 2021-07-28 06:55:07 UTC >++++ gcc/system.h >+@@ -203,19 +203,6 @@ extern int fprintf_unlocked (FILE *, const char *, ... >+ #endif >+ #endif >+ >+-/* There are an extraordinary number of issues with <ctype.h>. >+- The last straw is that it varies with the locale. Use libiberty's >+- replacement instead. */ >+-#include "safe-ctype.h" >+- >+-#include <sys/types.h> >+- >+-#include <errno.h> >+- >+-#if !defined (errno) && defined (HAVE_DECL_ERRNO) && !HAVE_DECL_ERRNO >+-extern int errno; >+-#endif >+- >+ #ifdef __cplusplus >+ #if defined (INCLUDE_ALGORITHM) || !defined (HAVE_SWAP_IN_UTILITY) >+ # include <algorithm> >+@@ -242,6 +229,19 @@ extern int errno; >+ # include <new> >+ # include <utility> >+ # include <type_traits> >++#endif >++ >++/* There are an extraordinary number of issues with <ctype.h>. >++ The last straw is that it varies with the locale. Use libiberty's >++ replacement instead. */ >++#include "safe-ctype.h" >++ >++#include <sys/types.h> >++ >++#include <errno.h> >++ >++#if !defined (errno) && defined (HAVE_DECL_ERRNO) && !HAVE_DECL_ERRNO >++extern int errno; >+ #endif >+ >+ /* Some of glibc's string inlines cause warnings. Plus we'd rather
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 274038
: 245142