Mercurial > emacs
diff src/sysdep.c @ 20293:31035eff741a
(init_system_name): Don't use sysinfo.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Thu, 20 Nov 1997 22:05:08 +0000 |
parents | 3ef6fba94e13 |
children | 3665989afd33 |
line wrap: on
line diff
--- a/src/sysdep.c Thu Nov 20 22:03:42 1997 +0000 +++ b/src/sysdep.c Thu Nov 20 22:05:08 1997 +0000 @@ -2290,10 +2290,12 @@ } } #endif /* HAVE_SOCKETS */ - /* We used to try using getdomainname as an alternative - to sysinfo, here, but NIIBE Yutaka <gniibe@etl.go.jp> says that + /* We used to try using getdomainname here, + but NIIBE Yutaka <gniibe@etl.go.jp> 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 @@ } } #endif /* HAVE_SYSINFO && defined (SI_SRPC_DOMAIN) */ +#endif /* 0 */ Vsystem_name = build_string (hostname); #endif /* HAVE_GETHOSTNAME */ #endif /* VMS */