1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-17 19:39:43 +00:00

sysutils/clockspeed: include errno.h for errno

errno must be accessed by a macro from errno.h.
This commit is contained in:
Brooks Davis 2024-09-30 16:56:09 +01:00
parent 0dc57d1b22
commit b559c289f7
3 changed files with 23 additions and 4 deletions

View File

@ -1,6 +1,6 @@
PORTNAME= clockspeed
PORTVERSION= 0.62
PORTREVISION= 6
PORTREVISION= 7
CATEGORIES= sysutils
MASTER_SITES= http://cr.yp.to/clockspeed/ \
http://redundancy.redundancy.org/mirror/

View File

@ -0,0 +1,11 @@
--- error.h.orig
+++ error.h
@@ -1,7 +1,7 @@
#ifndef ERROR_H
#define ERROR_H
-extern int errno;
+#include <errno.h>
extern int error_intr;
extern int error_nomem;

View File

@ -1,6 +1,14 @@
--- leapsecs_read.c.orig Thu May 24 20:07:04 2001
+++ leapsecs_read.c Thu May 24 20:12:33 2001
@@ -18,7 +18,7 @@
--- leapsecs_read.c.orig
+++ leapsecs_read.c
@@ -2,7 +2,6 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
-extern int errno;
#include "tai.h"
#include "leapsecs.h"
@@ -18,7 +17,7 @@
int i;
struct tai u;