mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
sysutils/socket: include errno.h for errno
errno must be accessed by a macro from errno.h.
This commit is contained in:
parent
7f9480c704
commit
78d77a7c97
2 changed files with 12 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
11
sysutils/socket/files/patch-globals.h
Normal file
11
sysutils/socket/files/patch-globals.h
Normal 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 ;
|
Loading…
Add table
Reference in a new issue