OpenIndiana and Solaris port
[oweals/cde.git] / cde / programs / dtksh / xmcmds.c
index 351c52d8cce65ec66d8dbb96d6eaf29898cd393b..29d5ff53edf8c58c5df44daf8e5a31d05513c8f2 100644 (file)
@@ -3738,7 +3738,7 @@ do_catopen(
    nl_catd nlmsg_fd = (nl_catd)-1;
    char * errmsg;
 #if defined(SVR4) || defined (_AIX) || defined(sco) || defined(DEC) || \
-    defined(CSRG_BASED) || defined(linux)
+    defined(CSRG_BASED) || defined(linux) || defined(sun)
    char * nextMatch;
 #endif
 
@@ -3763,7 +3763,7 @@ do_catopen(
 
       altCatName = XtMalloc(strlen(catName) + 10);
 #if defined(SVR4) || defined (_AIX) || defined(sco) || defined(DEC) || \
-    defined(CSRG_BASED) || defined(linux)
+    defined(CSRG_BASED) || defined(linux) || defined(sun)
       /* These platforms don't have strrstr() */
       ptr = NULL;
       nextMatch = catName;