mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
sysutils/clockspeed: include errno.h for errno
errno must be accessed by a macro from errno.h.
This commit is contained in:
parent
0dc57d1b22
commit
b559c289f7
3 changed files with 23 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
||||||
PORTNAME= clockspeed
|
PORTNAME= clockspeed
|
||||||
PORTVERSION= 0.62
|
PORTVERSION= 0.62
|
||||||
PORTREVISION= 6
|
PORTREVISION= 7
|
||||||
CATEGORIES= sysutils
|
CATEGORIES= sysutils
|
||||||
MASTER_SITES= http://cr.yp.to/clockspeed/ \
|
MASTER_SITES= http://cr.yp.to/clockspeed/ \
|
||||||
http://redundancy.redundancy.org/mirror/
|
http://redundancy.redundancy.org/mirror/
|
||||||
|
|
11
sysutils/clockspeed/files/patch-error.h
Normal file
11
sysutils/clockspeed/files/patch-error.h
Normal 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;
|
|
@ -1,6 +1,14 @@
|
||||||
--- leapsecs_read.c.orig Thu May 24 20:07:04 2001
|
--- leapsecs_read.c.orig
|
||||||
+++ leapsecs_read.c Thu May 24 20:12:33 2001
|
+++ leapsecs_read.c
|
||||||
@@ -18,7 +18,7 @@
|
@@ -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;
|
int i;
|
||||||
struct tai u;
|
struct tai u;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue