freebsd-ports/misc/viz/files/patch-loadfile.c
Brooks Davis b8e225422d 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.
2024-09-30 23:13:43 +01:00

13 lines
216 B
C

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