[Asterisk-cvs] asterisk/channels/h323 Makefile,1.11,1.12

citats at lists.digium.com citats at lists.digium.com
Mon Apr 19 04:07:56 CDT 2004


Update of /usr/cvsroot/asterisk/channels/h323
In directory mongoose.digium.com:/home/citats/cvs/asterisk/channels/h323

Modified Files:
	Makefile 
Log Message:
OpenBSD portability enhancements (bug 1002)


Index: Makefile
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/h323/Makefile,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- Makefile	11 Jan 2004 02:22:32 -0000	1.11
+++ Makefile	19 Apr 2004 08:11:51 -0000	1.12
@@ -26,9 +26,15 @@
 #
 # 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




More information about the svn-commits mailing list