BelledonneCommunications / mediastreamer2

Linphone.org mirror for mediastreamer2 (git://git.linphone.org/mediastreamer2.git)
http://linphone.org
GNU Affero General Public License v3.0
133 stars 104 forks source link

fix missing function #23

Open maykonchagas opened 4 years ago

maykonchagas commented 4 years ago

When compiling, I've get an error:

/home/maykon/downloads/mediastreamer-git/src/mediastreamer2/src/voip/turn_tcp.cpp: In member function ‘int TurnSocket::connect()’:                                                                
/home/maykon/downloads/mediastreamer-git/src/mediastreamer2/src/voip/turn_tcp.cpp:400:83: error: ‘getSocketErrorWithCode’ was not declared in this scope; did you mean ‘getSocketErrorCode’?      
  400 |   ms_error("TurnSocket [%p]: failed to connect to server (%d): %s", this, optVal, getSocketErrorWithCode(optVal));                                                                        
      |                                                                                   ^~~~~~~~~~~~~~~~~~~~~~                                                                                  
      |                                                                                   getSocketErrorCode                                                                                      
make[2]: *** [src/CMakeFiles/mediastreamer.dir/build.make:1487: src/CMakeFiles/mediastreamer.dir/voip/turn_tcp.cpp.o] Error 1                                                                     
make[1]: *** [CMakeFiles/Makefile2:278: src/CMakeFiles/mediastreamer.dir/all] Error 2