From 78d77a7c97a7f41485b3225a923b16cdd6205169 Mon Sep 17 00:00:00 2001 From: Brooks Davis Date: Mon, 30 Sep 2024 16:56:09 +0100 Subject: [PATCH] sysutils/socket: include errno.h for errno errno must be accessed by a macro from errno.h. --- sysutils/socket/Makefile | 2 +- sysutils/socket/files/patch-globals.h | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 sysutils/socket/files/patch-globals.h diff --git a/sysutils/socket/Makefile b/sysutils/socket/Makefile index 7d275dfd2e24..b464edd10a0c 100644 --- a/sysutils/socket/Makefile +++ b/sysutils/socket/Makefile @@ -1,6 +1,6 @@ PORTNAME= socket PORTVERSION= 1.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= sysutils net MASTER_SITES= https://wolfram.schneider.org/src/ LOCAL/wosch diff --git a/sysutils/socket/files/patch-globals.h b/sysutils/socket/files/patch-globals.h new file mode 100644 index 000000000000..0ad1ee77f125 --- /dev/null +++ b/sysutils/socket/files/patch-globals.h @@ -0,0 +1,11 @@ +--- globals.h.orig ++++ globals.h +@@ -48,7 +48,7 @@ + void strip_crs A((char *from, char *to, int *sizep)) ; + void background A((void)) ; + +-extern int errno ; ++#include + + /* global variables */ + extern int serverflag ;