diff options
| author | Karl Heuer | 1997-11-20 22:05:08 +0000 |
|---|---|---|
| committer | Karl Heuer | 1997-11-20 22:05:08 +0000 |
| commit | 6250a9db043dd4a5fedb441a3615fb87bc7d4fa3 (patch) | |
| tree | 62b7c741188d6689cd37a1fbc19363dae7ca9ea6 /src/sysdep.c | |
| parent | 5df4982e74f8816801c860051d42d8bdda88d6d4 (diff) | |
| download | emacs-6250a9db043dd4a5fedb441a3615fb87bc7d4fa3.tar.gz emacs-6250a9db043dd4a5fedb441a3615fb87bc7d4fa3.zip | |
(init_system_name): Don't use sysinfo.
Diffstat (limited to 'src/sysdep.c')
| -rw-r--r-- | src/sysdep.c | 7 |
1 files changed, 5 insertions, 2 deletions
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 () | |||
| 2290 | } | 2290 | } |
| 2291 | } | 2291 | } |
| 2292 | #endif /* HAVE_SOCKETS */ | 2292 | #endif /* HAVE_SOCKETS */ |
| 2293 | /* We used to try using getdomainname as an alternative | 2293 | /* We used to try using getdomainname here, |
| 2294 | to sysinfo, here, but NIIBE Yutaka <gniibe@etl.go.jp> says that | 2294 | but NIIBE Yutaka <gniibe@etl.go.jp> says that |
| 2295 | getdomainname gets the NIS/YP domain which often is not the same | 2295 | getdomainname gets the NIS/YP domain which often is not the same |
| 2296 | as in Internet domain name. */ | 2296 | as in Internet domain name. */ |
| 2297 | #if 0 /* Turned off because sysinfo is not really likely to return the | ||
| 2298 | correct Internet domain. */ | ||
| 2297 | #if (HAVE_SYSINFO && defined (SI_SRPC_DOMAIN)) | 2299 | #if (HAVE_SYSINFO && defined (SI_SRPC_DOMAIN)) |
| 2298 | if (! index (hostname, '.')) | 2300 | if (! index (hostname, '.')) |
| 2299 | { | 2301 | { |
| @@ -2327,6 +2329,7 @@ init_system_name () | |||
| 2327 | } | 2329 | } |
| 2328 | } | 2330 | } |
| 2329 | #endif /* HAVE_SYSINFO && defined (SI_SRPC_DOMAIN) */ | 2331 | #endif /* HAVE_SYSINFO && defined (SI_SRPC_DOMAIN) */ |
| 2332 | #endif /* 0 */ | ||
| 2330 | Vsystem_name = build_string (hostname); | 2333 | Vsystem_name = build_string (hostname); |
| 2331 | #endif /* HAVE_GETHOSTNAME */ | 2334 | #endif /* HAVE_GETHOSTNAME */ |
| 2332 | #endif /* VMS */ | 2335 | #endif /* VMS */ |