X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/1691e80890e5d8ba258c51c214a3e91880e1db2b..d3d0096ab170eec3ccfb35615a246a4d5d31b878:/sbr/m_tmpfil.c diff --git a/sbr/m_tmpfil.c b/sbr/m_tmpfil.c index 1b4f3549..31bce67a 100644 --- a/sbr/m_tmpfil.c +++ b/sbr/m_tmpfil.c @@ -14,7 +14,11 @@ m_tmpfil (char *template) static char tmpfil[BUFSIZ]; snprintf (tmpfil, sizeof(tmpfil), "/tmp/%sXXXXXX", template); +#ifdef HAVE_MKSTEMP + unlink(mkstemp(tmpfil)); +#else unlink(mktemp(tmpfil)); +#endif return tmpfil; }