FreeBSD Bugzilla – Attachment 245152 Details for
Bug 274041
lang/gcc10 lang/gcc11 lang/gcc11-devel lang/gcc12 lang/gcc12-devel lang/gcc13 lang/gcc13-devel lang/gcc14-devel: fix build with libc++ 17
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
lang/gcc13: fix build with libc++ 17
lang__gcc13-fix-libcxx17-build-1.diff (text/plain), 1.35 KB, created by
Dimitry Andric
on 2023-09-23 08:00:42 UTC
(
hide
)
Description:
lang/gcc13: fix build with libc++ 17
Filename:
MIME Type:
Creator:
Dimitry Andric
Created:
2023-09-23 08:00:42 UTC
Size:
1.35 KB
patch
obsolete
>diff --git a/lang/gcc13/files/patch-gcc_system.h b/lang/gcc13/files/patch-gcc_system.h >new file mode 100644 >index 000000000000..d31fb72931b5 >--- /dev/null >+++ b/lang/gcc13/files/patch-gcc_system.h >@@ -0,0 +1,42 @@ >+--- gcc/system.h.orig 2023-04-26 07:09:40 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> >+@@ -243,6 +230,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 274041
:
245147
|
245148
|
245149
|
245150
|
245151
| 245152 |
245153
|
245154