Fix compilation issue in console.c for Mac

This commit is contained in:
Guillaume BIENKOWSKI 2013-12-05 18:00:33 +01:00
parent eb70e7067b
commit 5ea937f787

View file

@ -2109,7 +2109,13 @@ static int lpc_cmd_speak(LinphoneCore *lc, char *args){
memset(voice,0,sizeof(voice));
sscanf(args,"%63s",voice);
sentence=args+strlen(voice);
#ifdef __APPLE__
wavfile=mktemp("/tmp/linphonec-espeak-XXXXXX");
#else
wavfile=tempnam("/tmp/","linphonec-espeak-");
#endif
snprintf(cl,sizeof(cl),"espeak -v %s -s 100 -w %s --stdin",voice,wavfile);
file=popen(cl,"w");
if (file==NULL){