1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-12 07:27:57 +00:00

mail/serialmail: 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 bd7c71cded
commit c115a19758
3 changed files with 22 additions and 1 deletions

View File

@ -1,6 +1,6 @@
PORTNAME= serialmail
PORTVERSION= 0.75
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES= mail
MASTER_SITES= http://cr.yp.to/software/ \
ftp://ftp.gbnet.net/pub/qmail/ \

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

@ -0,0 +1,10 @@
--- 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"