From: <jpg...@us...> - 2007-12-19 15:35:24
|
Revision: 1314 http://iaxclient.svn.sourceforge.net/iaxclient/?rev=1314&view=rev Author: jpgrayson Date: 2007-12-19 07:35:27 -0800 (Wed, 19 Dec 2007) Log Message: ----------- Apply patch from Lee Howard to fix libiax2 build on OpenBSD. Modified Paths: -------------- trunk/lib/libiax2/src/iax.c Modified: trunk/lib/libiax2/src/iax.c =================================================================== --- trunk/lib/libiax2/src/iax.c 2007-12-19 15:32:10 UTC (rev 1313) +++ trunk/lib/libiax2/src/iax.c 2007-12-19 15:35:27 UTC (rev 1314) @@ -30,7 +30,6 @@ #include <winsock.h> #include <time.h> #include <stdlib.h> -#include <malloc.h> #include <stdarg.h> #include <stdio.h> #include <limits.h> @@ -76,9 +75,9 @@ #include <arpa/inet.h> #include <time.h> -#ifndef MACOSX +#if !defined(MACOSX) && !defined(__OpenBSD__) #include <malloc.h> -#ifndef SOLARIS +#if !defined(SOLARIS) #include <error.h> #endif #endif @@ -97,7 +96,7 @@ #ifdef MACOSX #define IAX_SOCKOPTS MSG_DONTWAIT #else -#ifdef SOLARIS +#if defined(SOLARIS) || defined(__OpenBSD__) #define IAX_SOCKOPTS MSG_DONTWAIT #else /* Linux and others */ #define IAX_SOCKOPTS MSG_DONTWAIT | MSG_NOSIGNAL This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |