net_connection_list works on freebsd4 too

This commit is contained in:
Doug MacEachern 2006-01-02 22:04:19 +00:00
parent 7745201227
commit 6dbaff7b07
1 changed files with 0 additions and 10 deletions

View File

@ -1817,8 +1817,6 @@ int sigar_net_interface_stat_get(sigar_t *sigar, const char *name,
return SIGAR_OK; return SIGAR_OK;
} }
#if defined(SIGAR_FREEBSD5) || defined(DARWIN)
#include <sys/socketvar.h> #include <sys/socketvar.h>
#include <netinet/tcp.h> #include <netinet/tcp.h>
#include <netinet/in_pcb.h> #include <netinet/in_pcb.h>
@ -1985,14 +1983,6 @@ int sigar_net_connection_list_get(sigar_t *sigar,
return SIGAR_OK; return SIGAR_OK;
} }
#else
int sigar_net_connection_list_get(sigar_t *sigar,
sigar_net_connection_list_t *connlist,
int flags)
{
return SIGAR_ENOTIMPL;
}
#endif
#if defined(SIGAR_FREEBSD5) #if defined(SIGAR_FREEBSD5)