提交 ffbf2620 authored 作者: Anthony Minessale's avatar Anthony Minessale

build tweak

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@262 a93c3328-9c30-0410-af19-c9cd2b2d52af
上级 00c90fa2
...@@ -50,6 +50,8 @@ typedef intptr_t zap_ssize_t; ...@@ -50,6 +50,8 @@ typedef intptr_t zap_ssize_t;
typedef int zap_filehandle_t; typedef int zap_filehandle_t;
#else #else
#include <stdint.h> #include <stdint.h>
#include <sys/types.h>
#include <sys/ioctl.h>
typedef int zap_socket_t; typedef int zap_socket_t;
typedef ssize_t zap_ssize_t; typedef ssize_t zap_ssize_t;
typedef int zap_filehandle_t; typedef int zap_filehandle_t;
......
...@@ -34,6 +34,11 @@ ...@@ -34,6 +34,11 @@
#include "openzap.h" #include "openzap.h"
#include "zap_analog.h" #include "zap_analog.h"
#ifndef localtime_r
struct tm * localtime_r(const time_t *clock, struct tm *result);
#endif
static void *zap_analog_channel_run(zap_thread_t *me, void *obj); static void *zap_analog_channel_run(zap_thread_t *me, void *obj);
static ZIO_CHANNEL_OUTGOING_CALL_FUNCTION(analog_fxo_outgoing_call) static ZIO_CHANNEL_OUTGOING_CALL_FUNCTION(analog_fxo_outgoing_call)
......
...@@ -33,7 +33,6 @@ ...@@ -33,7 +33,6 @@
#include "openzap.h" #include "openzap.h"
#include "zap_wanpipe.h" #include "zap_wanpipe.h"
#include <stropts.h>
#include <poll.h> #include <poll.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <wanpipe_tdm_api_iface.h> #include <wanpipe_tdm_api_iface.h>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论