X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Fm_tmpfil.c;h=bac70b0a5bfbeaf032414fe085a64a65d8938b2e;hb=09470876aa753a96fa312296ed3c39ba761f3dd2;hp=1b4f3549153bc553323d6fc3fb18bdbfe2b39ece;hpb=1691e80890e5d8ba258c51c214a3e91880e1db2b;p=mmh diff --git a/sbr/m_tmpfil.c b/sbr/m_tmpfil.c index 1b4f354..bac70b0 100644 --- a/sbr/m_tmpfil.c +++ b/sbr/m_tmpfil.c @@ -14,7 +14,15 @@ m_tmpfil (char *template) static char tmpfil[BUFSIZ]; snprintf (tmpfil, sizeof(tmpfil), "/tmp/%sXXXXXX", template); +/* + Mkstemp work postponed until later -Doug +#ifdef HAVE_MKSTEMP + unlink(mkstemp(tmpfil)); +#else +*/ unlink(mktemp(tmpfil)); - +/* +#endif +*/ return tmpfil; }