Fix DtMail compilation on Sun with GCC
[oweals/cde.git] / cde / programs / dtmail / dtmail / FindDialog.C
index e8f9cf4f0f2f95b4790b9f168b6cdb5e035a0501..21567c9be39cbe9c90f6f1daca4259758a92a007 100644 (file)
@@ -16,7 +16,7 @@
  * details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with these librararies and programs; if not, write
+ * License along with these libraries and programs; if not, write
  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
  * Floor, Boston, MA 02110-1301 USA
  */
@@ -133,6 +133,7 @@ FindDialog::FindDialog(RoamMenuWindow *parent) : Dialog("find", parent)
   _roamWindow = parent;
   _num_text_fields = 4;
   _num_buttons = 5;
+  _status_text = NULL;
 
   //
   // Allocate storage for labels, widgets, and data.
@@ -728,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)
+const char     *
+FindDialog::strcasestr(const char *str, const char *toFind)
 {
   const char   *result = NULL;         // Default to not found.