summaryrefslogtreecommitdiff
path: root/dev-util/sgb/files/sgb-20090810-Fix-build-with-Clang-16.patch
blob: d26e26a42e1e39c39ca01716bd366f9493cb8a3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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