typedef int zap_filehandle_t;
#else
#include <stdint.h>
+#include <sys/types.h>
+#include <sys/ioctl.h>
typedef int zap_socket_t;
typedef ssize_t zap_ssize_t;
typedef int zap_filehandle_t;
#include "openzap.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 ZIO_CHANNEL_OUTGOING_CALL_FUNCTION(analog_fxo_outgoing_call)
#include "openzap.h"
#include "zap_wanpipe.h"
-#include <stropts.h>
#include <poll.h>
#include <sys/socket.h>
#include <wanpipe_tdm_api_iface.h>