summaryrefslogtreecommitdiff
path: root/net/iaxmodem/files/patch-lib_libiax2_src_iax.c
blob: e9bb86b44bc6e53ff55ced499eeccf01a70bd6ff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--- lib/libiax2/src/iax.c.orig	Mon Jun 12 15:54:46 2006
+++ lib/libiax2/src/iax.c	Thu Jun 15 14:22:17 2006
@@ -44,6 +44,7 @@
 #else
 
 #include <netdb.h>
+#include <sys/types.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <sys/time.h>
@@ -64,9 +64,9 @@
 #include <arpa/inet.h>
 #include <time.h>
 
-#if !defined(MACOSX) && !defined(__OpenBSD__)
+#if !defined(MACOSX) && !defined(__OpenBSD__) && !defined(__FreeBSD__)
 #include <malloc.h>
-#if !defined(SOLARIS)
+#if !defined(SOLARIS) && !defined(__FreeBSD__)
 #include <error.h>
 #endif
 #endif
@@ -97,7 +97,7 @@
 #ifdef MACOSX
 #define IAX_SOCKOPTS MSG_DONTWAIT
 #else
-#if defined(SOLARIS) || defined(__OpenBSD__)
+#if defined(SOLARIS) || defined(__OpenBSD__) || defined(__FreeBSD__)
 #define IAX_SOCKOPTS MSG_DONTWAIT
 #else  /* Linux and others */
 #define IAX_SOCKOPTS MSG_DONTWAIT | MSG_NOSIGNAL