mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 09:36:41 -04: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
3 changed files with 27 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
PORTNAME= viz
|
PORTNAME= viz
|
||||||
PORTVERSION= 1.1.1
|
PORTVERSION= 1.1.1
|
||||||
PORTREVISION= 2
|
PORTREVISION= 3
|
||||||
CATEGORIES= misc
|
CATEGORIES= misc
|
||||||
MASTER_SITES= LOCAL/fenner
|
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…
Add table
Reference in a new issue