1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

sysutils/socket: 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 7f9480c704
commit 78d77a7c97
2 changed files with 12 additions and 1 deletions

View File

@ -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

View File

@ -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 ;