Remove Unixware and openserver support
[oweals/cde.git] / cde / programs / dtprintinfo / objects / PrintObj / ParseJobs.C
index be91d8eb2f5fa382228c7c08af66d72d43ac91ce..a7d8b0ef5c8fa047b23ded45078ec9891a3290c1 100644 (file)
@@ -64,14 +64,14 @@ extern "C" in_addr_t inet_addr(const char *);
   #include <regex.h>
 #endif
 
-#if defined(aix) || defined(__osf__) || defined(USL)
+#if defined(aix) || defined(__osf__)
 extern "C" { int rresvport(int *); }
 #endif
 
 #ifdef hpux
   #define SETEUID(id) setresuid(getuid(), (uid_t)id, (uid_t)0);
 #else
-  #if defined(aix) || defined(USL)
+  #if defined(aix)
     extern "C" { extern int seteuid(uid_t); }
   #endif
   #define SETEUID(id) seteuid((uid_t)id)
@@ -177,15 +177,9 @@ int ConnectToPrintServer(const char *rhost, int timeout)
    int s, lport = IPPORT_RESERVED - 1;
 
    // Get the host address and port number to connect to.
-#if defined(USL) && OSMAJORVERSION > 1
-   if (!(hp = gethostbyname((char *) rhost)))
-    {
-      unsigned long tmpaddr = inet_addr((char *) rhost);
-#else
    if (!(hp = gethostbyname(rhost)))
     {
       unsigned long tmpaddr = inet_addr(rhost);
-#endif
       hp = gethostbyaddr((char *)&tmpaddr, sizeof(tmpaddr), AF_INET);
     }
    if (hp == NULL)
@@ -338,7 +332,7 @@ void LocalPrintJobs(char *printer, char **job_list, int *n_jobs)
 }
 #endif
 
-#if defined(sun) || defined(USL)
+#if defined(sun)
 
 // SUN LOCAL PARSER, actually this gets the local information from the file
 // system, it should have the good performance since no processes (lpstat)
@@ -672,7 +666,7 @@ static int SortJobs(const void *_first, const void *_second)
       return (int)((**first).secs - (**second).secs);
 }
 
-#endif // SUN and USL LOCAL PARSER
+#endif // SUN LOCAL PARSER
 
 #ifdef hpux