mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-19 11:42:27 +00:00
OpenBSD portability to H323
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2806 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -54,13 +54,13 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#include <sys/signal.h>
|
#include <sys/signal.h>
|
||||||
#include <netinet/ip.h>
|
|
||||||
#ifdef __OpenBSD__
|
#ifdef __OpenBSD__
|
||||||
#include <netinet/in_systm.h>
|
#include <netinet/in_systm.h>
|
||||||
#ifndef IPTOS_MINCOST
|
#ifndef IPTOS_MINCOST
|
||||||
#define IPTOS_MINCOST 0x02
|
#define IPTOS_MINCOST 0x02
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
#include <netinet/ip.h>
|
||||||
|
|
||||||
#include "h323/chan_h323.h"
|
#include "h323/chan_h323.h"
|
||||||
|
|
||||||
|
@@ -39,7 +39,10 @@ CFLAGS += -march=$(shell uname -m) -DPBYTE_ORDER=PLITTLE_ENDIAN
|
|||||||
# Pre Janus release directives
|
# Pre Janus release directives
|
||||||
CFLAGS += -DNDEBUG -DDO_CRASH -DDEBUG_THREADS
|
CFLAGS += -DNDEBUG -DDO_CRASH -DDEBUG_THREADS
|
||||||
CFLAGS += -pipe -Wall -fPIC -Wmissing-prototypes -Wmissing-declarations
|
CFLAGS += -pipe -Wall -fPIC -Wmissing-prototypes -Wmissing-declarations
|
||||||
CFLAGS += -DP_LINUX -D_REENTRANT -D_GNU_SOURCE
|
ifeq (${OSARCH},Linux)
|
||||||
|
CFLAGS += -DP_LINUX
|
||||||
|
endif
|
||||||
|
CFLAGS += -D_REENTRANT -D_GNU_SOURCE
|
||||||
CFLAGS += -DP_HAS_SEMAPHORES -DP_SSL -DP_PTHREADS
|
CFLAGS += -DP_HAS_SEMAPHORES -DP_SSL -DP_PTHREADS
|
||||||
CFLAGS += -DPHAS_TEMPLATES -DPTRACING -DP_USE_PRAGMA
|
CFLAGS += -DPHAS_TEMPLATES -DPTRACING -DP_USE_PRAGMA
|
||||||
CFLAGS += -I../../include
|
CFLAGS += -I../../include
|
||||||
|
Reference in New Issue
Block a user