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:
Michael Jerris
2005-12-06 21:25:10 +00:00
parent b15265cbdb
commit 935c23ca8b
4 changed files with 270 additions and 1 deletions

View File

@@ -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) {