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:
parent
bb1a2c2c42
commit
b8e225422d
@ -1,6 +1,6 @@
|
||||
PORTNAME= viz
|
||||
PORTVERSION= 1.1.1
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= misc
|
||||
MASTER_SITES= LOCAL/fenner
|
||||
|
||||
|
13
misc/viz/files/patch-lists.c
Normal file
13
misc/viz/files/patch-lists.c
Normal 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;
|
13
misc/viz/files/patch-loadfile.c
Normal file
13
misc/viz/files/patch-loadfile.c
Normal 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;
|
Loading…
Reference in New Issue
Block a user