Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
5b4b82c4
提交
5b4b82c4
authored
9月 04, 2015
作者:
Mike Jerris
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
working windows build
上级
9830fb63
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
25 行增加
和
1 行删除
+25
-1
ks.c
libs/libks/src/ks.c
+1
-0
mpool.c
libs/libks/src/mpool.c
+21
-1
simclist.c
libs/libks/src/simclist.c
+3
-0
没有找到文件。
libs/libks/src/ks.c
浏览文件 @
5b4b82c4
...
@@ -59,6 +59,7 @@
...
@@ -59,6 +59,7 @@
/* These warnings need to be ignored warning in sdk header */
/* These warnings need to be ignored warning in sdk header */
#include <Ws2tcpip.h>
#include <Ws2tcpip.h>
#include <windows.h>
#include <windows.h>
#pragma comment(lib, "Ws2_32.lib")
#ifndef errno
#ifndef errno
#define errno WSAGetLastError()
#define errno WSAGetLastError()
#endif
#endif
...
...
libs/libks/src/mpool.c
浏览文件 @
5b4b82c4
...
@@ -37,7 +37,15 @@
...
@@ -37,7 +37,15 @@
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdlib.h>
#include <string.h>
#include <string.h>
#ifndef _MSC_VER
#ifdef _MSC_VER
#include <io.h>
#ifndef open
#define open _open
#endif
#ifndef close
#define close _close
#endif
#else
#include <unistd.h>
#include <unistd.h>
#endif
#endif
#include <sys/mman.h>
#include <sys/mman.h>
...
@@ -66,6 +74,18 @@ static unsigned int min_bit_free_next = 0; /* min size of next pnt */
...
@@ -66,6 +74,18 @@ static unsigned int min_bit_free_next = 0; /* min size of next pnt */
static
unsigned
int
min_bit_free_size
=
0
;
/* min size of next + size */
static
unsigned
int
min_bit_free_size
=
0
;
/* min size of next + size */
static
unsigned
long
bit_array
[
MAX_BITS
+
1
];
/* size -> bit */
static
unsigned
long
bit_array
[
MAX_BITS
+
1
];
/* size -> bit */
#ifdef _MSC_VER
#include <Windows.h>
long
getpagesize
(
void
)
{
static
long
g_pagesize
=
0
;
if
(
!
g_pagesize
)
{
SYSTEM_INFO
system_info
;
GetSystemInfo
(
&
system_info
);
g_pagesize
=
system_info
.
dwPageSize
;
}
return
g_pagesize
;
}
#endif
/****************************** local utilities ******************************/
/****************************** local utilities ******************************/
/*
/*
...
...
libs/libks/src/simclist.c
浏览文件 @
5b4b82c4
...
@@ -57,6 +57,9 @@
...
@@ -57,6 +57,9 @@
#if defined(_MSC_VER) || defined(__MINGW32__)
#if defined(_MSC_VER) || defined(__MINGW32__)
/* provide gettimeofday() missing in Windows */
/* provide gettimeofday() missing in Windows */
#ifdef _MSC_VER
#pragma comment(lib, "Winmm.lib")
#endif
int
gettimeofday
(
struct
timeval
*
tp
,
void
*
tzp
)
{
int
gettimeofday
(
struct
timeval
*
tp
,
void
*
tzp
)
{
DWORD
t
;
DWORD
t
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论