From b8e225422defaecb12e4860000f97e08f9f5afe8 Mon Sep 17 00:00:00 2001 From: Brooks Davis Date: Mon, 30 Sep 2024 16:56:09 +0100 Subject: [PATCH] misc/viz: include errno.h for errno errno must be accessed by a macro from errno.h. This program was partially converted in it's initial commit, but the removal of errno declerations was incomplete. --- misc/viz/Makefile | 2 +- misc/viz/files/patch-lists.c | 13 +++++++++++++ misc/viz/files/patch-loadfile.c | 13 +++++++++++++ 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 misc/viz/files/patch-lists.c create mode 100644 misc/viz/files/patch-loadfile.c diff --git a/misc/viz/Makefile b/misc/viz/Makefile index 353a577576cc..38243420aef2 100644 --- a/misc/viz/Makefile +++ b/misc/viz/Makefile @@ -1,6 +1,6 @@ PORTNAME= viz PORTVERSION= 1.1.1 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= misc MASTER_SITES= LOCAL/fenner diff --git a/misc/viz/files/patch-lists.c b/misc/viz/files/patch-lists.c new file mode 100644 index 000000000000..db88c0b0baf6 --- /dev/null +++ b/misc/viz/files/patch-lists.c @@ -0,0 +1,13 @@ +--- lists.c.orig ++++ lists.c +@@ -6,10 +6,6 @@ + + #include "viz.h" + +-extern errno; +- +-extern char *malloc(); +- + void + printlist(level, list) + int level; diff --git a/misc/viz/files/patch-loadfile.c b/misc/viz/files/patch-loadfile.c new file mode 100644 index 000000000000..19309738ea8d --- /dev/null +++ b/misc/viz/files/patch-loadfile.c @@ -0,0 +1,13 @@ +--- loadfile.c.orig ++++ loadfile.c +@@ -1,9 +1,8 @@ ++#include + #include + #include + #include + #include +- +-extern errno; + + char *loadfile(path) + char *path;