use mkstemp on systems that have it
[mmh] / uip / spost.c
index 58d4ae3..c5b27a0 100644 (file)
@@ -346,7 +346,11 @@ main (int argc, char **argv)
        out = stdout;
     }
     else {
+#ifdef HAVE_MKSTEMP
+           mkstemp (tmpfil);
+#else
            mktemp (tmpfil);
+#endif
            if ((out = fopen (tmpfil, "w")) == NULL)
                adios (tmpfil, "unable to create");
            chmod (tmpfil, 0600);