From be05b1850f43712275a69a6a33ea2fc65d200932 Mon Sep 17 00:00:00 2001 From: Piotr Kubaj Date: Mon, 31 Aug 2020 12:47:35 +0000 Subject: graphics/pgplot: fix build on head Clang 11 crashes on sprintf() redeclaration, which probably shouldn't happen anyway. --- graphics/pgplot/files/patch-pgdispd_updatelgtitle.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 graphics/pgplot/files/patch-pgdispd_updatelgtitle.c (limited to 'graphics') diff --git a/graphics/pgplot/files/patch-pgdispd_updatelgtitle.c b/graphics/pgplot/files/patch-pgdispd_updatelgtitle.c new file mode 100644 index 000000000000..b3bd00a3186b --- /dev/null +++ b/graphics/pgplot/files/patch-pgdispd_updatelgtitle.c @@ -0,0 +1,19 @@ +--- pgdispd/updatelgtitle.c.orig 2020-08-31 12:24:15 UTC ++++ pgdispd/updatelgtitle.c +@@ -14,6 +14,7 @@ + #include "figdisp.h" + #include "globals.h" + #include ++#include + #include + + void updatelgtitle(x,y) +@@ -27,7 +28,7 @@ int x,y; /* cursor position */ + XImage *image; + int i; + +-#ifndef _AIX ++#if defined(_AIX) && !defined(__FreeBSD__) + char *sprintf(); + #endif + -- cgit v1.2.3