Resolve inconsistent strcasestr availability on Sun
authorMatthew R. Trower <dev@blackshard.net>
Tue, 19 Jun 2018 20:25:20 +0000 (15:25 -0500)
committerJon Trulson <jon@radscan.com>
Wed, 20 Jun 2018 18:14:53 +0000 (12:14 -0600)
cde/programs/dtmail/dtmail/FindDialog.C
cde/programs/dtmail/dtmail/FindDialog.h

index 1f489b5b2aae6acf151f6327d71188ddf390f628..cef88a7d549d167ff79a2a3974db1d26fc1c2bfd 100644 (file)
@@ -729,13 +729,13 @@ FindDialog::compareMessage(DtMailMessageHandle      handle)
   return(found);
 }
 
-#if !defined(CSRG_BASED) && !defined(__linux__) && !defined(sun)
+#if !defined(CSRG_BASED) && !defined(__linux__)
 //
 // See if string 'toFind' is anyware in string 'str'.
 // A case-insensitive version of strstr().
 //
 static const char      *
-strcasestr(const char *str, const char *toFind)
+FindDialog::strcasestr(const char *str, const char *toFind)
 {
   const char   *result = NULL;         // Default to not found.
 
index b3dc141dbdfecca99f3cc91a43dc80341e254d02..2b99d44b13948f73664d688831e0036c5e60968b 100644 (file)
@@ -102,6 +102,11 @@ private:
 
   Boolean      compareMessage(DtMailMessageHandle        handle);
 
+  #if !defined(CSRG_BASED) && !defined(__linux__)
+  static const char * strcasestr(const char *str,
+                                const char *toFind);
+  #endif
+
   Boolean      compareHeader(DtMailEnv         & error,
                      DtMailValueSeq    & seq,
                      const char        * cmpToString);