[asterisk-dev] RHEL "2.6.9" kernel detection

Tzafrir Cohen tzafrir.cohen at xorcom.com
Tue Sep 19 03:21:55 MST 2006


Hi

in zaptel/xpp/xdefs.h we have some code to add a missing typedef.

#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,14)
typedef unsigned gfp_t;         /* Added in 2.6.14 */
#endif

This has worked fine, until we found out later RHEL 2.6.9 kernels have
backported that same typedef. 

This still does not break the code from building, as by default the xpp
module will not build with kernels smaller than 2.6.10 . However apart 
from that point there should be no problem to build it with RHEL4 
kernels ("2.6.9") and there is no problem with Debian Sarge kernels 
("2.6.8").


Any better check? Any simple way to add a typedef only if it is not
defined?

-- 
Tzafrir Cohen         sip:tzafrir at local.xorcom.com
icq#16849755          iax:tzafrir at local.xorcom.com
+972-50-7952406          jabber:tzafrir at jabber.org
tzafrir.cohen at xorcom.com     http://www.xorcom.com


More information about the asterisk-dev mailing list