aboutsummaryrefslogtreecommitdiffstats
path: root/channels/h323/Makefile
diff options
context:
space:
mode:
authorcitats <citats@f38db490-d61c-443f-a65b-d21fe96a405b>2004-04-19 08:11:51 +0000
committercitats <citats@f38db490-d61c-443f-a65b-d21fe96a405b>2004-04-19 08:11:51 +0000
commitb149107c9accc399a704e20facc29d39de0cd187 (patch)
treeb8f24a2be248e5afeab4ddabbdc08fff7cafa3e7 /channels/h323/Makefile
parentd433c9e7c161e045eb757fa8063c093d89686da2 (diff)
OpenBSD portability enhancements (bug 1002)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2708 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/h323/Makefile')
-rwxr-xr-xchannels/h323/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/channels/h323/Makefile b/channels/h323/Makefile
index cd796b153..d07ae7c3b 100755
--- a/channels/h323/Makefile
+++ b/channels/h323/Makefile
@@ -26,9 +26,15 @@ CFLAGS += -march=$(shell uname -m) -DPBYTE_ORDER=PLITTLE_ENDIAN
#
# Only change below if you know WTF your doing
#
+OSARCH=$(shell uname -s)
CFLAGS += -DNDEBUG -DDO_CRASH -DDEBUG_THREADS
CFLAGS += -pipe -Wall -fPIC -Wmissing-prototypes -Wmissing-declarations
-CFLAGS += -DP_LINUX -D_REENTRANT -D_GNU_SOURCE
+CFLAGS += -D_REENTRANT -D_GNU_SOURCE
+ifeq (${OSARCH},OpenBSD)
+CFLAGS += -DP_OPENBSD=200311
+else
+CFLAGS += -DP_LINUX
+endif
CFLAGS += -DP_HAS_SEMAPHORES -DP_SSL -DP_PTHREADS
CFLAGS += -DPHAS_TEMPLATES -DPTRACING -DP_USE_PRAGMA
CFLAGS += -I../../include