mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-15 01:54:46 +00:00
Use a HAVE_MKSTEMP configure check instead of PLATFORM_POSIX.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user