From e5989250be20d74b8628b96df5c3811213ee5ef1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?=
 <grubba@grubba.org>
Date: Tue, 4 Mar 1997 22:48:32 +0100
Subject: [PATCH] Probably works on FreeBSD now.

Rev: src/modules/spider/dumudp.c:1.5
Rev: src/modules/system/system.c:1.12
---
 src/modules/spider/dumudp.c | 6 +++++-
 src/modules/system/system.c | 6 ++++--
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/src/modules/spider/dumudp.c b/src/modules/spider/dumudp.c
index 908debb805..51fd99d724 100644
--- a/src/modules/spider/dumudp.c
+++ b/src/modules/spider/dumudp.c
@@ -1,7 +1,7 @@
 #include <config.h>
 
 #include "global.h"
-RCSID("$Id: dumudp.c,v 1.4 1997/02/07 01:43:18 hubbe Exp $");
+RCSID("$Id: dumudp.c,v 1.5 1997/03/04 21:45:40 grubba Exp $");
 #include "types.h"
 #include "interpret.h"
 #include "svalue.h"
@@ -171,7 +171,9 @@ void udp_read(INT32 args)
      case EIO:
       error("I/O error\n");
      case ENOMEM:
+#ifdef ENOSR
      case ENOSR:
+#endif /* ENOSR */
       error("Out of memory\n");
      case ENOTSOCK:
       fatal("reading from non-socket fd!!!\n");
@@ -237,7 +239,9 @@ void udp_sendto(INT32 args)
      case EBADF:
       error("Socket closed\n");
      case ENOMEM:
+#ifdef ENOSR
      case ENOSR:
+#endif /* ENOSR */
       error("Out of memory\n");
      case EINVAL:
      case ENOTSOCK:
diff --git a/src/modules/system/system.c b/src/modules/system/system.c
index 1c1a8df6ed..82de4e4492 100644
--- a/src/modules/system/system.c
+++ b/src/modules/system/system.c
@@ -1,5 +1,5 @@
 /*
- * $Id: system.c,v 1.11 1997/02/07 00:46:26 hubbe Exp $
+ * $Id: system.c,v 1.12 1997/03/04 21:48:32 grubba Exp $
  *
  * System-call module for Pike
  *
@@ -14,7 +14,7 @@
 #include "system.h"
 
 #include <global.h>
-RCSID("$Id: system.c,v 1.11 1997/02/07 00:46:26 hubbe Exp $");
+RCSID("$Id: system.c,v 1.12 1997/03/04 21:48:32 grubba Exp $");
 #include <module_support.h>
 #include <las.h>
 #include <interpret.h>
@@ -105,9 +105,11 @@ static volatile void report_error(const char *function_name)
   case ENOENT:
     error_msg = "File not found";
     break;
+#ifdef ENOLINK
   case ENOLINK:
     error_msg = "Link to remote machine nolonger active";
     break;
+#endif /* ENOLINK */
   case ENOSPC:
     error_msg = "Filesystem full";
     break;
-- 
GitLab