diff options
Diffstat (limited to 'src')
| -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 */ |