mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-09 03:18:30 +00:00
More BSD enhancements (#970)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2110 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
4
acl.c
4
acl.c
@@ -29,7 +29,7 @@
|
|||||||
#include <netinet/in_systm.h>
|
#include <netinet/in_systm.h>
|
||||||
#include <netinet/ip.h>
|
#include <netinet/ip.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#ifdef __OpenBSD__
|
#if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__)
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <net/route.h>
|
#include <net/route.h>
|
||||||
|
|
||||||
@@ -179,7 +179,7 @@ int ast_lookup_iface(char *iface, struct in_addr *address) {
|
|||||||
|
|
||||||
int ast_ouraddrfor(struct in_addr *them, struct in_addr *us)
|
int ast_ouraddrfor(struct in_addr *them, struct in_addr *us)
|
||||||
{
|
{
|
||||||
#ifdef __OpenBSD__
|
#if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__)
|
||||||
struct sockaddr_in *sin;
|
struct sockaddr_in *sin;
|
||||||
struct sockaddr *sa;
|
struct sockaddr *sa;
|
||||||
struct {
|
struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user