From: Karl Heuer Date: Thu, 20 Nov 1997 22:05:08 +0000 (+0000) Subject: (init_system_name): Don't use sysinfo. X-Git-Tag: emacs-20.3~2780 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6250a9db043dd4a5fedb441a3615fb87bc7d4fa3;p=emacs.git (init_system_name): Don't use sysinfo. --- diff --git a/src/sysdep.c b/src/sysdep.c index e304feded3f..48d4824e7f0 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -2290,10 +2290,12 @@ init_system_name () } } #endif /* HAVE_SOCKETS */ - /* We used to try using getdomainname as an alternative - to sysinfo, here, but NIIBE Yutaka says that + /* We used to try using getdomainname here, + but NIIBE Yutaka says that getdomainname gets the NIS/YP domain which often is not the same as in Internet domain name. */ +#if 0 /* Turned off because sysinfo is not really likely to return the + correct Internet domain. */ #if (HAVE_SYSINFO && defined (SI_SRPC_DOMAIN)) if (! index (hostname, '.')) { @@ -2327,6 +2329,7 @@ init_system_name () } } #endif /* HAVE_SYSINFO && defined (SI_SRPC_DOMAIN) */ +#endif /* 0 */ Vsystem_name = build_string (hostname); #endif /* HAVE_GETHOSTNAME */ #endif /* VMS */