Fix warnings on FreeBSD
[oweals/cde.git] / cde / programs / ttsnoop / ttsnoop.C.src
index 12cd67fd019e022da1c52d66ce02633a00027ecc..fc1495b1b2a22479acab40607ebc5bc48a54abee 100644 (file)
@@ -63,7 +63,7 @@
 #include <sys/stat.h>
 #include <time.h>
 
-#if defined(linux) || defined(CSRG_BASED)
+#if defined(__linux__) || defined(CSRG_BASED) || defined(sun)
 #include <iostream>
 #include <strstream>
 #include <fstream>
@@ -196,7 +196,7 @@ signalHandler(
        }
 }
 
-#if defined(SVR4) || defined(aix) || defined(hpux) || defined(__osf__) || defined(linux) || defined(CSRG_BASED)
+#if defined(SVR4) || defined(aix) || defined(hpux) || defined(__linux__) || defined(CSRG_BASED)
 #if !defined(SIG_PF)
 typedef void (*sig_pf_t)(int);
 #define SIG_PF sig_pf_t
@@ -208,7 +208,7 @@ _tt_sigset(
        int     sig,
        SIG_PF  handler )
 {
-#if defined(hpux) || defined(linux) || defined(CSRG_BASED)
+#if defined(hpux) || defined(__linux__) || defined(CSRG_BASED)
        struct sigaction act;
        act.sa_handler = handler;
        sigemptyset(&act.sa_mask);
@@ -340,8 +340,8 @@ main(int argc, char **argv)
     XtAppContext       app;
     Atom               save_yourself_atom;
 
-    Pixmap     icon_pixmap = NULL;
-    Pixmap     icon_mask_pixmap = NULL;
+    Pixmap     icon_pixmap = 0;
+    Pixmap     icon_mask_pixmap = 0;
     
     /**************************************************************************
      *** DTB_USER_CODE_START