FreeBSD Bugzilla – Attachment 245140 Details for
Bug 274037
devel/freebsd-gcc9 devel/freebsd-gcc12: fix build with libc++ 17
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
devel/freebsd-gcc9: fix build with libc++ 17
devel__freebsd-gcc9-fix-libcxx17-build-1.diff (text/plain), 1.37 KB, created by
Dimitry Andric
on 2023-09-23 07:55:33 UTC
(
hide
)
Description:
devel/freebsd-gcc9: fix build with libc++ 17
Filename:
MIME Type:
Creator:
Dimitry Andric
Created:
2023-09-23 07:55:33 UTC
Size:
1.37 KB
patch
obsolete
>diff --git a/devel/freebsd-gcc9/files/patch-gcc_system.h b/devel/freebsd-gcc9/files/patch-gcc_system.h >new file mode 100644 >index 000000000000..e28d9e4acc58 >--- /dev/null >+++ b/devel/freebsd-gcc9/files/patch-gcc_system.h >@@ -0,0 +1,42 @@ >+--- gcc/system.h.orig 2022-05-27 07:21:11 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> >+@@ -235,6 +222,19 @@ extern int errno; >+ # include <cstring> >+ # include <new> >+ # include <utility> >++#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 274037
: 245140 |
245141