graphviz: fix building with clang 15
This commit is contained in:
26
mingw-w64-graphviz/017-fix-building-on-clang-15.patch
Normal file
26
mingw-w64-graphviz/017-fix-building-on-clang-15.patch
Normal file
@@ -0,0 +1,26 @@
|
||||
diff --git a/cmd/lefty/common.h b/cmd/lefty/common.h
|
||||
index 1f5758a..6180a0d 100644
|
||||
--- a/cmd/lefty/common.h
|
||||
+++ b/cmd/lefty/common.h
|
||||
@@ -65,6 +65,7 @@ extern "C" {
|
||||
|
||||
#ifdef FEATURE_MS
|
||||
#include <malloc.h>
|
||||
+int gprintf (const char *fmt, ...);
|
||||
#define printf gprintf
|
||||
#endif
|
||||
|
||||
diff --git a/lib/neatogen/stuff.c b/lib/neatogen/stuff.c
|
||||
index ba17965..815158e 100644
|
||||
--- a/lib/neatogen/stuff.c
|
||||
+++ b/lib/neatogen/stuff.c
|
||||
@@ -20,6 +20,9 @@
|
||||
#ifndef _WIN32
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
+#ifndef HAVE_DRAND48
|
||||
+extern double drand48(void);
|
||||
+#endif
|
||||
|
||||
static double Epsilon2;
|
||||
|
||||
@@ -61,7 +61,8 @@ source=(#${_realname}-${pkgver}::git+https://gitlab.com/graphviz/graphviz.git#ta
|
||||
013-further-fixes.patch
|
||||
014-gdiplus-no-explicit-libstdc++.patch
|
||||
015-cast-function-pointer-to-void-pointer.patch
|
||||
016-makefile-dont-embed-build-system-path.patch)
|
||||
016-makefile-dont-embed-build-system-path.patch
|
||||
017-fix-building-on-clang-15.patch)
|
||||
sha256sums=('8e1b34763254935243ccdb83c6ce108f531876d7a5dfd443f255e6418b8ea313'
|
||||
'a64e23a55481ff36641466ef80607bcdc1bbf20f992804620f4a58b5b8c04f8d'
|
||||
'd1e7e4dc1b55463123e3ed8f999745bf06078766ee24071be8866ac75fe1309e'
|
||||
@@ -78,7 +79,8 @@ sha256sums=('8e1b34763254935243ccdb83c6ce108f531876d7a5dfd443f255e6418b8ea313'
|
||||
'2cc48cd408a2949391e5e5232b107300978a82c31eaf54a35a4d87d3a503c643'
|
||||
'97a2655d52632b77700adeade13c9608e516676b5092fbc9786a0fcd557f6656'
|
||||
'c6a52798aef381cea84d2e0299ae7ffdd992b0663eff3d903b3aa5e7c34964ca'
|
||||
'a0b2fa94f5aa4042684525c0463b1e180fcd37fc5f1ca80265cd9e72b2d17225')
|
||||
'a0b2fa94f5aa4042684525c0463b1e180fcd37fc5f1ca80265cd9e72b2d17225'
|
||||
'988598c46ed3234166142d0d912be4426887f5a75b8d405634234d38a9e4d9a5')
|
||||
|
||||
prepare() {
|
||||
cd "${srcdir}"/${_realname}-${pkgver}
|
||||
|
||||
Reference in New Issue
Block a user