git: b559c289f7e9 - main - sysutils/clockspeed: include errno.h for errno
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 30 Sep 2024 22:15:20 UTC
The branch main has been updated by brooks: URL: https://cgit.FreeBSD.org/ports/commit/?id=b559c289f7e95e25cdf904e030563ee0c7d528c1 commit b559c289f7e95e25cdf904e030563ee0c7d528c1 Author: Brooks Davis <brooks@FreeBSD.org> AuthorDate: 2024-09-30 15:56:09 +0000 Commit: Brooks Davis <brooks@FreeBSD.org> CommitDate: 2024-09-30 22:13:44 +0000 sysutils/clockspeed: include errno.h for errno errno must be accessed by a macro from errno.h. --- sysutils/clockspeed/Makefile | 2 +- sysutils/clockspeed/files/patch-error.h | 11 +++++++++++ sysutils/clockspeed/files/patch-leapsecs_read.c | 14 +++++++++++--- 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;