summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-08-15 00:27:03 +0000
committertzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-08-15 00:27:03 +0000
commit625b5ef831d58bc6c853700fd793c483e9a1c76c (patch)
treece0b6308a9911fe3f45adedb367bd8d1aecfb8f9
parent24762f3aec332ef8c732d60b8f0d37ca0ca0a22f (diff)
Fix building on older CentOS 4 and Trixbox.
Merged revisions 2836 via svnmerge from https://origsvn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2837 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rw-r--r--Makefile.kernel267
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile.kernel26 b/Makefile.kernel26
index 97a4e59..aa023ed 100644
--- a/Makefile.kernel26
+++ b/Makefile.kernel26
@@ -1,5 +1,12 @@
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)