From e2c801663cfa97dc7686d525685a4152f36e10fd Mon Sep 17 00:00:00 2001 From: Marius Vollmer Date: Fri, 2 Nov 2001 00:16:28 +0000 Subject: [PATCH] Disable extern declaration of `h_errno' for __CYGWIN__, too. Put `scm_return_entry()' into HAVE_GETSERVENT conditional. --- libguile/net_db.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libguile/net_db.c b/libguile/net_db.c index 91d0d8347..8afd9244c 100644 --- a/libguile/net_db.c +++ b/libguile/net_db.c @@ -74,7 +74,7 @@ #include #endif -#if !defined (HAVE_H_ERRNO) && !defined (__MINGW32__) +#if !defined (HAVE_H_ERRNO) && !defined (__MINGW32__) && !defined (__CYGWIN__) /* h_errno not found in netdb.h, maybe this will help. */ extern int h_errno; #endif @@ -314,6 +314,7 @@ SCM_DEFINE (scm_getproto, "getproto", 0, 1, 0, #undef FUNC_NAME #endif +#ifdef HAVE_GETSERVENT static SCM scm_return_entry (struct servent *entry) { @@ -329,7 +330,6 @@ scm_return_entry (struct servent *entry) return ans; } -#ifdef HAVE_GETSERVENT SCM_DEFINE (scm_getserv, "getserv", 0, 2, 0, (SCM name, SCM protocol), "@deffnx procedure getservbyname name protocol\n"