Skip to content
Snippets Groups Projects
Commit 28e58d7d authored by Mark Spencer's avatar Mark Spencer
Browse files

Include fixes for portability

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1033 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent e7b50567
No related branches found
No related tags found
No related merge requests found
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
* the GNU General Public License * the GNU General Public License
*/ */
#include <malloc.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <asterisk/chanvars.h> #include <asterisk/chanvars.h>
......
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
#include <fcntl.h> #include <fcntl.h>
#include <unistd.h> #include <unistd.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/nameser.h>
#include <resolv.h> #include <resolv.h>
#include <errno.h> #include <errno.h>
......
...@@ -26,6 +26,11 @@ extern "C" { ...@@ -26,6 +26,11 @@ extern "C" {
#ifndef __BYTE_ORDER #ifndef __BYTE_ORDER
#ifdef __linux__ #ifdef __linux__
#include <endian.h> #include <endian.h>
#elif defined(__OpenBSD__)
#include <machine/endian.h>
#define __BYTE_ORDER BYTE_ORDER
#define __LITTLE_ENDIAN LITTLE_ENDIAN
#define __BIG_ENDIAN BIG_ENDIAN
#else #else
#ifdef __LITTLE_ENDIAN__ #ifdef __LITTLE_ENDIAN__
#define __BYTE_ORDER __LITTLE_ENDIAN #define __BYTE_ORDER __LITTLE_ENDIAN
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment