diff options
-rw-r--r-- | Makefile.kernel26 | 7 |
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) |