Remove Unixware and openserver support

This commit is contained in:
chase
2018-05-19 19:50:35 -05:00
committed by Jon Trulson
parent beea573d17
commit 07900bd93b
375 changed files with 725 additions and 9112 deletions

View File

@@ -36,7 +36,7 @@
#include <string.h>
#include <rpc/rpc.h>
#include <unistd.h>
#if defined(sun) || defined(USL)
#if defined(sun)
#include <netdb.h>
#include <sys/systeminfo.h>
#endif
@@ -81,11 +81,11 @@ _DtCmGetLocalHost()
if (host == NULL) {
host = (char *)malloc(MAXHOSTNAMELEN+1);
#if defined(sun) || defined(USL)
#if defined(sun)
(void)sysinfo(SI_HOSTNAME, host, MAXHOSTNAMELEN);
#else
(void)gethostname(host, MAXHOSTNAMELEN);
#endif /* sun || USL */
#endif /* sun */
}
return (host);
@@ -100,11 +100,11 @@ _DtCmGetLocalDomain(char *hostname)
if (domain == NULL) {
domain = (char *)malloc(BUFSIZ);
#if defined(sun) || defined(USL)
#if defined(sun)
sysinfo(SI_SRPC_DOMAIN, domain, BUFSIZ - 1);
#else
getdomainname(domain, BUFSIZ - 1);
#endif /* sun || USL */
#endif /* sun */
/* check domain name */
/* this is a hack to find out the domain name that