Commit 5ea937f7 authored by Guillaume BIENKOWSKI's avatar Guillaume BIENKOWSKI

Fix compilation issue in console.c for Mac

parent eb70e706
......@@ -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){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment