diff options
-rw-r--r-- | Makefile.kernel26 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile.kernel26 b/Makefile.kernel26 index 7564818..b42ed06 100644 --- a/Makefile.kernel26 +++ b/Makefile.kernel26 @@ -15,6 +15,13 @@ endif 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) |