Use a HAVE_MKSTEMP configure check instead of PLATFORM_POSIX.

This commit is contained in:
Reece H. Dunn
2016-01-30 10:51:24 +00:00
parent 0b187e217e
commit dc87e7b775
3 changed files with 3 additions and 2 deletions
+1
View File
@@ -93,6 +93,7 @@ AC_CHECK_FUNCS([memchr])
AC_CHECK_FUNCS([memmove])
AC_CHECK_FUNCS([memset])
AC_CHECK_FUNCS([mkdir])
AC_CHECK_FUNCS([mkstemp])
AC_CHECK_FUNCS([pow])
AC_CHECK_FUNCS([setlocale])
AC_CHECK_FUNCS([sqrt])
+1 -1
View File
@@ -1261,7 +1261,7 @@ static int LoadWavefile(FILE *f, const char *fname)
failed = 0;
#ifdef PLATFORM_POSIX
#ifdef HAVE_MKSTEMP
strcpy(fname_temp, "/tmp/espeakXXXXXX");
if ((fd_temp = mkstemp(fname_temp)) >= 0)
close(fd_temp);
+1 -1
View File
@@ -826,7 +826,7 @@ static espeak_ng_STATUS LoadSoundFile(const char *fname, int index, espeak_ng_ER
fclose(f);
f = NULL;
#ifdef PLATFORM_POSIX
#ifdef HAVE_MKSTEMP
strcpy(fname_temp, "/tmp/espeakXXXXXX");
if ((fd_temp = mkstemp(fname_temp)) >= 0)
close(fd_temp);