1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

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.
This commit is contained in:
Brooks Davis 2024-09-30 16:56:09 +01:00
parent bb1a2c2c42
commit b8e225422d
3 changed files with 27 additions and 1 deletions

View File

@ -1,6 +1,6 @@
PORTNAME= viz
PORTVERSION= 1.1.1
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= misc
MASTER_SITES= LOCAL/fenner

View File

@ -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;

View File

@ -0,0 +1,13 @@
--- loadfile.c.orig
+++ loadfile.c
@@ -1,9 +1,8 @@
+#include <errno.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/fcntl.h>
-
-extern errno;
char *loadfile(path)
char *path;