Remove UXPDS support
This commit is contained in:
@@ -59,14 +59,14 @@
|
||||
#include <pwd.h>
|
||||
#include <netdb.h>
|
||||
#include <sys/utsname.h> /* SYS_NMLN */
|
||||
#if defined(sun) || defined(USL) || defined(__uxp__)
|
||||
#if defined(sun) || defined(USL)
|
||||
#include <sys/systeminfo.h>
|
||||
#else
|
||||
#include <sys/dir.h>
|
||||
#endif /* sun || USL || __uxp__ */
|
||||
#endif /* sun || USL */
|
||||
#include <sys/param.h>
|
||||
|
||||
#if (defined(USL) || defined(__uxp__)) && !defined(DOM_NM_LN)
|
||||
#if defined(USL) && !defined(DOM_NM_LN)
|
||||
#define DOM_NM_LN BUFSIZ
|
||||
#endif
|
||||
|
||||
@@ -548,13 +548,13 @@ cm_get_local_host()
|
||||
static char *local_host;
|
||||
|
||||
if (local_host == NULL) {
|
||||
#if defined(sun) || defined(USL) || defined(__uxp__)
|
||||
#if defined(sun) || defined(USL)
|
||||
local_host = (char *)ckalloc(MAXHOSTNAMELEN);
|
||||
(void) sysinfo(SI_HOSTNAME, local_host, MAXHOSTNAMELEN);
|
||||
#else
|
||||
local_host = (char *)ckalloc(MAXHOSTNAMELEN);
|
||||
(void) gethostname(local_host, MAXHOSTNAMELEN);
|
||||
#endif /* sun || USL || __uxp__ */
|
||||
#endif /* sun || USL */
|
||||
}
|
||||
return local_host;
|
||||
}
|
||||
@@ -582,14 +582,14 @@ cm_get_local_domain()
|
||||
|
||||
if (local_domain == NULL) {
|
||||
local_domain = ckalloc(BUFSIZ);
|
||||
#if defined(sun) || defined(USL) || defined(__uxp__)
|
||||
#if defined(sun) || defined(USL)
|
||||
sysinfo(SI_SRPC_DOMAIN, local_domain, DOM_NM_LN);
|
||||
#else
|
||||
if(-1 == getdomainname(local_domain, BUFSIZ)) {
|
||||
fprintf(stderr, "getdomainname() failed %d '%s'\n", errno, strerror(errno));
|
||||
}
|
||||
|
||||
#endif /* sun || USL || __uxp__ */
|
||||
#endif /* sun || USL */
|
||||
}
|
||||
return(local_domain);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user