Commit b3bbef37 authored by Pekka Pessi's avatar Pekka Pessi

su_epoll_port.c, su_poll_port.c: fixed compilation if there is no epoll or poll

darcs-hash:20070209064514-65a35-120913fce22d496e7e3e8cdfc9a121d6ed386fcc.gz
parent e3e2342b
......@@ -571,7 +571,7 @@ int su_epoll_clone_start(su_root_t *parent,
su_port_t *su_epoll_port_create(void)
{
return su_default_port_create(void);
return su_default_port_create();
}
int su_epoll_clone_start(su_root_t *parent,
......
......@@ -36,6 +36,12 @@
#include "config.h"
#define su_port_s su_poll_port_s
#include "su_port.h"
#include "sofia-sip/su_alloc.h"
#include "sofia-sip/su.h"
#if HAVE_POLL_PORT
#include <stdlib.h>
......@@ -46,12 +52,6 @@
#include <limits.h>
#include <errno.h>
#define su_port_s su_poll_port_s
#include "sofia-sip/su.h"
#include "su_port.h"
#include "sofia-sip/su_alloc.h"
/** Port based on poll(). */
struct su_poll_port_s {
......@@ -679,7 +679,7 @@ int su_poll_clone_start(su_root_t *parent,
su_port_t *su_poll_port_create(void)
{
return su_default_port_create(void);
return su_default_port_create();
}
int su_poll_clone_start(su_root_t *parent,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment