diff --git a/src/modules/spider/dumudp.c b/src/modules/spider/dumudp.c index 908debb8050ca4ffd258dd7711497df599f87398..51fd99d724486864f18c84829aff03a27d8d9b54 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 1c1a8df6edc9eec5a9b47f519db0e988a1d76db2..82de4e44926c073f57ec8ace69454ff20a23adc8 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;