mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 01:26:58 +00:00
first part of iaxchan windows build
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@89 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -30,9 +30,17 @@
|
||||
*
|
||||
*/
|
||||
#include <switch.h>
|
||||
|
||||
#ifdef WIN32
|
||||
#include <iax2.h>
|
||||
#include <iax-client.h>
|
||||
#include <iax2-parser.h>
|
||||
#include <sys/timeb.h>
|
||||
#else
|
||||
#include <iax/iax2.h>
|
||||
#include <iax/iax-client.h>
|
||||
#include <iax/iax2-parser.h>
|
||||
#endif
|
||||
|
||||
static const char modname[] = "mod_iaxchan";
|
||||
|
||||
@@ -79,7 +87,17 @@ struct private_object {
|
||||
switch_thread_cond_t *cond;
|
||||
};
|
||||
|
||||
|
||||
#ifdef WIN32
|
||||
void gettimeofday( struct timeval* tv, void* tz )
|
||||
{
|
||||
struct _timeb curSysTime;
|
||||
_ftime(&curSysTime);
|
||||
tv->tv_sec = curSysTime.time;
|
||||
tv->tv_usec = curSysTime.millitm * 1000;
|
||||
|
||||
return ;
|
||||
}
|
||||
#endif
|
||||
static void set_global_dialplan(char *dialplan)
|
||||
{
|
||||
if (globals.dialplan) {
|
||||
|
Reference in New Issue
Block a user