[zaptel-commits] tzafrir: branch 1.2 r2836 - /branches/1.2/Makefile.kernel26

SVN commits to the Zaptel project zaptel-commits at lists.digium.com
Tue Aug 14 18:37:11 CDT 2007


Author: tzafrir
Date: Tue Aug 14 18:37:10 2007
New Revision: 2836

URL: http://svn.digium.com/view/zaptel?view=rev&rev=2836
Log:
Fix building on older CentOS 4 and Trixbox.

Modified:
    branches/1.2/Makefile.kernel26

Modified: branches/1.2/Makefile.kernel26
URL: http://svn.digium.com/view/zaptel/branches/1.2/Makefile.kernel26?view=diff&rev=2836&r1=2835&r2=2836
==============================================================================
--- branches/1.2/Makefile.kernel26 (original)
+++ branches/1.2/Makefile.kernel26 Tue Aug 14 18:37:10 2007
@@ -15,6 +15,13 @@
 
 EXTRA_CFLAGS := -I$(src)
 
+# fix typo present in CentOS and RHEL 2.6.9 kernels
+BAD_KERNELS_VERS := 22 34 34.0.1 34.0.2
+BAD_KERNELS := $(foreach ver,$(BAD_KERNELS_VERS),2.6.9-$(ver).EL 2.6.9-$(ver).ELsmp)
+ifneq (,$(filter $(KVERS),$(BAD_KERNELS)))
+EXTRA_CFLAGS+=-Drw_lock_t=rwlock_t
+endif
+
 zaptel-objs := zaptel-base.o
 
 ifeq ($(HPEC_PRESENT),yes)




More information about the zaptel-commits mailing list