mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-18 00:10:04 +00: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
@ -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/
|
||||
|
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 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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user