summaryrefslogtreecommitdiff
path: root/dev-ml/labltk/files/labltk-8.06.7-configure.patch
blob: 320f92f7ce4534c5258c3b07bc5ae400ca977ef8 (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
https://bugs.gentoo.org/881841
https://github.com/garrigue/labltk/commit/be8c977d320ed40cacb322658d4ceba5e583b3a6

From be8c977d320ed40cacb322658d4ceba5e583b3a6 Mon Sep 17 00:00:00 2001
From: Jacques Garrigue <garrigue@math.nagoya-u.ac.jp>
Date: Mon, 24 Aug 2020 11:27:34 +0900
Subject: [PATCH] Fix config/auto-aux/hasgot for clang 12

--- a/config/auto-aux/hasgot
+++ b/config/auto-aux/hasgot
@@ -30,7 +30,8 @@ while : ; do
   shift
 done
 
-(echo "main() {"
+(for f in $*; do echo "int $f();"; done
+ echo "int main() {"
  for f in $*; do echo "  $f();"; done
  echo "}") >> hasgot.c
 
--- a/config/auto-aux/hasgot.c
+++ /dev/null
@@ -1,3 +0,0 @@
-main() {
-  Tk_SetGrid();
-}