git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@5410
4a8a32a2-be11-0410-ad9d-
d568d2c75423
#include <string.h>
#include <assert.h>
#include <time.h>
+#include <sys/stat.h>
#include "dbuf_string.h"
#include "lkar.h"
struct stat stat_buf;
int can_stat;
- /* TODO: create tmpfile in temporery directory (TMP, TMPDIR, /usr/tmp, /tmp) */
#ifdef _WIN32
if (NULL == _mktemp (tmpfile) || NULL == (outfp = fopen (tmpfile, "wb")))
{
if (0 != fstat(fileno(infp), &stat_buf))
{
- fprintf (stderr, "asranlib: can't stat %s: ", infp);
+ fprintf (stderr, "asranlib: can't stat %s: ", archive);
perror (NULL);
fclose (infp);
can_stat = 0;