git: 78d77a7c97a7 - main - sysutils/socket: include errno.h for errno
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 30 Sep 2024 22:15:22 UTC
The branch main has been updated by brooks:
URL: https://cgit.FreeBSD.org/ports/commit/?id=78d77a7c97a7f41485b3225a923b16cdd6205169
commit 78d77a7c97a7f41485b3225a923b16cdd6205169
Author: Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2024-09-30 15:56:09 +0000
Commit: Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2024-09-30 22:13:45 +0000
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(-)
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 <errno.h>
+
+ /* global variables */
+ extern int serverflag ;