Browse Source

Use a HAVE_MKSTEMP configure check instead of PLATFORM_POSIX.

master
Reece H. Dunn 9 years ago
parent
commit
dc87e7b775
3 changed files with 3 additions and 2 deletions
  1. 1
    0
      configure.ac
  2. 1
    1
      src/libespeak-ng/compiledata.c
  3. 1
    1
      src/libespeak-ng/readclause.c

+ 1
- 0
configure.ac 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
src/libespeak-ng/compiledata.c 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
src/libespeak-ng/readclause.c 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);

Loading…
Cancel
Save