From 1b2eafe1bfcf914835b9e6ea699188782eccca9c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?=
 <grubba@grubba.org>
Date: Tue, 14 Oct 1997 15:33:41 +0200
Subject: [PATCH] Renamed h_errno to gh_errno to avoid problems if h_errno is a
 #define.

Rev: src/modules/system/system.c:1.29
---
 src/modules/system/system.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/modules/system/system.c b/src/modules/system/system.c
index ed18986046..18d7040600 100644
--- a/src/modules/system/system.c
+++ b/src/modules/system/system.c
@@ -1,5 +1,5 @@
 /*
- * $Id: system.c,v 1.28 1997/09/17 10:31:52 hubbe Exp $
+ * $Id: system.c,v 1.29 1997/10/14 13:33:41 grubba Exp $
  *
  * System-call module for Pike
  *
@@ -14,7 +14,7 @@
 #include "system.h"
 
 #include <global.h>
-RCSID("$Id: system.c,v 1.28 1997/09/17 10:31:52 hubbe Exp $");
+RCSID("$Id: system.c,v 1.29 1997/10/14 13:33:41 grubba Exp $");
 #include <module_support.h>
 #include <las.h>
 #include <interpret.h>
@@ -562,16 +562,16 @@ int my_isipnr(char *s)
     struct hostent *ret; \
     struct hostent result; \
     char data[2048]; \
-    int h_errno
+    int gh_errno
 
 #define CALL_GETHOSTBYNAME(X) \
     THREADS_ALLOW(); \
-    ret=gethostbyname_r((X), &result, data, sizeof(data), &h_errno); \
+    ret=gethostbyname_r((X), &result, data, sizeof(data), &gh_errno); \
     THREADS_DISALLOW()
 
 #define CALL_GETHOSTBYADDR(X,Y,Z) \
     THREADS_ALLOW(); \
-    ret=gethostbyaddr_r((X),(Y),(Z), &result, data, sizeof(data), &h_errno); \
+    ret=gethostbyaddr_r((X),(Y),(Z), &result, data, sizeof(data), &gh_errno); \
     THREADS_DISALLOW()
 
 #else /* HAVE_SOLARIS_GETHOSTBYNAME_R */
@@ -842,7 +842,7 @@ void pike_module_init(void)
            OPT_TRY_OPTIMIZE);
   add_efun("gethostbyaddr", f_gethostbyaddr, "function(string:array)",
            OPT_TRY_OPTIMIZE);
-#endif /* HAVE_GETHOSTBYNAME */
+#endif /* GETHOST_DECLARE */
 
   /*
    * From syslog.c:
-- 
GitLab