aboutsummaryrefslogtreecommitdiff
path: root/graphics/pgplot
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2020-08-31 12:47:35 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2020-08-31 12:47:35 +0000
commitbe05b1850f43712275a69a6a33ea2fc65d200932 (patch)
treee6bb674eb28b41e3782282e884d2045e08e6ebe3 /graphics/pgplot
parent1fa4f223a82d2b1c0d88d59a2bc5a5feec4133ab (diff)
downloadports-be05b1850f43712275a69a6a33ea2fc65d200932.tar.gz
ports-be05b1850f43712275a69a6a33ea2fc65d200932.zip
graphics/pgplot: fix build on head
Clang 11 crashes on sprintf() redeclaration, which probably shouldn't happen anyway.
Notes
Notes: svn path=/head/; revision=547176
Diffstat (limited to 'graphics/pgplot')
-rw-r--r--graphics/pgplot/files/patch-pgdispd_updatelgtitle.c19
1 files changed, 19 insertions, 0 deletions
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 <X11/Xlib.h>
++#include <stdio.h>
+ #include <string.h>
+
+ 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
+