mail/fastforward: 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 6204518869
commit b72e179346
3 changed files with 21 additions and 1 deletions

View file

@ -1,6 +1,6 @@
PORTNAME= fastforward
PORTVERSION= 0.51
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= mail
MASTER_SITES= http://cr.yp.to/software/

View file

@ -0,0 +1,9 @@
--- cdb_seek.c.orig
+++ cdb_seek.c
@@ -1,6 +1,5 @@
#include <sys/types.h>
#include <errno.h>
-extern int errno;
#include "cdb.h"
#ifndef SEEK_SET

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;