summaryrefslogtreecommitdiff
path: root/net-mgmt/annextools/files/patch-libannex::socket_layer.c
diff options
context:
space:
mode:
authorBruce M Simpson <bms@FreeBSD.org>2003-09-25 19:49:31 +0000
committerBruce M Simpson <bms@FreeBSD.org>2003-09-25 19:49:31 +0000
commit94886678c1e033de12c9ac018e86e46929243712 (patch)
treef7e9eec06f45c11741b9d260056f6d21729d7894 /net-mgmt/annextools/files/patch-libannex::socket_layer.c
parent- Update to version 2.1.10 (diff)
Add the Xylogics/Bay Networks/Nortel Networks Annex administration suite.
Allows the Annex to be administered from a FreeBSD host, rather than via the console port. Tested with a MicroAnnex-XL 16 port device. Reviewed by: edwin Approved by: jake (mentor)
Diffstat (limited to 'net-mgmt/annextools/files/patch-libannex::socket_layer.c')
-rw-r--r--net-mgmt/annextools/files/patch-libannex::socket_layer.c38
1 files changed, 38 insertions, 0 deletions
diff --git a/net-mgmt/annextools/files/patch-libannex::socket_layer.c b/net-mgmt/annextools/files/patch-libannex::socket_layer.c
new file mode 100644
index 000000000000..58f62727d159
--- /dev/null
+++ b/net-mgmt/annextools/files/patch-libannex::socket_layer.c
@@ -0,0 +1,38 @@
+--- libannex/socket_layer.c.orig Thu Aug 4 15:58:59 1994
++++ libannex/socket_layer.c Thu Sep 18 20:10:32 2003
+@@ -74,6 +74,8 @@
+ #include <ctype.h>
+ #include <errno.h>
+ #include <signal.h>
++#include <netdb.h>
++#include <netinet/in.h>
+ #include "../inc/config.h"
+ #include "../inc/slip/slip_user.h"
+
+@@ -189,7 +191,7 @@
+ int protocol; /* IPPROTO_UDP only */
+ {
+ struct sockinf *s;
+- errno_t error;
++ int error;
+ int i;
+
+ /* Check arguments */
+@@ -260,7 +262,7 @@
+ {
+ struct sockinf *t, *u;
+ int port;
+- errno_t error;
++ int error;
+
+ if(!(t = sockinf_bynumber(s, FALSE))) {
+ errno = EBADF;
+@@ -300,7 +302,7 @@
+ {
+ struct sockinf *t, *u;
+ int port;
+- errno_t error;
++ int error;
+
+ if(!(t = sockinf_bynumber(s, FALSE))) {
+ errno = EBADF;