diff options
author | Piotr Kubaj <pkubaj@FreeBSD.org> | 2020-08-31 12:47:35 +0000 |
---|---|---|
committer | Piotr Kubaj <pkubaj@FreeBSD.org> | 2020-08-31 12:47:35 +0000 |
commit | be05b1850f43712275a69a6a33ea2fc65d200932 (patch) | |
tree | e6bb674eb28b41e3782282e884d2045e08e6ebe3 /graphics | |
parent | Cleanup, no functionnal change. (diff) |
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')
-rw-r--r-- | graphics/pgplot/files/patch-pgdispd_updatelgtitle.c | 19 |
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 + |