diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-10-24 21:52:37 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-10-24 21:52:37 +0100 |
commit | 7ae4e1d32a98b596d483a19ed94a21b560eb595d (patch) | |
tree | 1c68a1258f5017984a7878d5e913d95d72544f59 /dev-util/sgb/files | |
parent | 145ac95c683ecda55a9b2cafc84dced2e9c29e03 (diff) |
gentoo auto-resync : 24:10:2022 - 21:52:37
Diffstat (limited to 'dev-util/sgb/files')
-rw-r--r-- | dev-util/sgb/files/sgb-20090810-Fix-build-with-Clang-16.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/dev-util/sgb/files/sgb-20090810-Fix-build-with-Clang-16.patch b/dev-util/sgb/files/sgb-20090810-Fix-build-with-Clang-16.patch new file mode 100644 index 000000000000..d26e26a42e1e --- /dev/null +++ b/dev-util/sgb/files/sgb-20090810-Fix-build-with-Clang-16.patch @@ -0,0 +1,46 @@ +From 5d0845e935d9b8d4174b9d98dbc123ec5d5a3460 Mon Sep 17 00:00:00 2001 +From: Sam James <sam@gentoo.org> +Date: Mon, 24 Oct 2022 19:54:02 +0100 +Subject: [PATCH] Fix build with Clang 16 + +Bug: https://bugs.gentoo.org/832835 +--- a/gb_graph.w ++++ b/gb_graph.w +@@ -40,11 +40,8 @@ programs at a higher level via the system loading routine. Here is + the general outline of \.{gb\_graph.c}: + + @p +-#ifdef SYSV + #include <string.h> +-#else + #include <strings.h> +-#endif + #include <stdio.h> + #include <stdlib.h> + @h@# +@@ -63,11 +60,8 @@ interfere with GraphBase use of a useful identifier. We scotch that. + @(gb_graph.h@>= + #include <stdio.h> + #include <stdlib.h> +-#ifdef SYSV + #include <string.h> +-#else + #include <strings.h> +-#endif + #undef min + @<Type declarations@>@; + +--- a/gb_io.w ++++ b/gb_io.w +@@ -92,11 +92,8 @@ occasion to use some of the standard string operations. + + @<Header...@>= + #include <stdio.h> +-#ifdef SYSV + #include <string.h> +-#else + #include <strings.h> +-#endif + + @* Inputting a line. The {\sc GB\_\,IO} routines get their input from + an array called |buffer|. This array is internal to {\sc |