aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2024-09-30 15:56:09 +0000
committerBrooks Davis <brooks@FreeBSD.org>2024-09-30 22:13:44 +0000
commitb559c289f7e95e25cdf904e030563ee0c7d528c1 (patch)
tree991dd83e07f6e1ea2473652ad3c3d79deb8c8ce5
parent0dc57d1b220a1e93045f1e92d94915193d3edcb8 (diff)
downloadports-b559c289f7e95e25cdf904e030563ee0c7d528c1.tar.gz
ports-b559c289f7e95e25cdf904e030563ee0c7d528c1.zip
sysutils/clockspeed: include errno.h for errno
errno must be accessed by a macro from errno.h.
-rw-r--r--sysutils/clockspeed/Makefile2
-rw-r--r--sysutils/clockspeed/files/patch-error.h11
-rw-r--r--sysutils/clockspeed/files/patch-leapsecs_read.c14
3 files changed, 23 insertions, 4 deletions
diff --git a/sysutils/clockspeed/Makefile b/sysutils/clockspeed/Makefile
index 9b81eada5659..e6bd0fc6b048 100644
--- a/sysutils/clockspeed/Makefile
+++ b/sysutils/clockspeed/Makefile
@@ -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/
diff --git a/sysutils/clockspeed/files/patch-error.h b/sysutils/clockspeed/files/patch-error.h
new file mode 100644
index 000000000000..e35ddb04802a
--- /dev/null
+++ b/sysutils/clockspeed/files/patch-error.h
@@ -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;
diff --git a/sysutils/clockspeed/files/patch-leapsecs_read.c b/sysutils/clockspeed/files/patch-leapsecs_read.c
index b05ea4f8375e..dfbcb97ce82f 100644
--- a/sysutils/clockspeed/files/patch-leapsecs_read.c
+++ b/sysutils/clockspeed/files/patch-leapsecs_read.c
@@ -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;