William F. Acker WB2FLW +1-303-722-7209
2006-Sep-04 00:52 UTC
[asterisk-users] No more linux/compiler.h in Fedora Core 6.
Hi all, When the glibc-kernheaders package disappeared from FC6 test2, builds of Asterisk failed with reference to a missing linux/compiler.h, included from channels/chan_phone.c. I applied the following patch diff -urN asterisk-1.2.11.orig/channels/chan_phone.c asterisk-1.2.11/channels/chan_phone.c --- asterisk-1.2.11.orig/channels/chan_phone.c 2006-08-05 05:08:50.000000000 +0000 +++ asterisk-1.2.11/channels/chan_phone.c 2006-09-04 07:23:40.000000000 +0000 @@ -37,9 +37,6 @@ #include <linux/telephony.h> /* Still use some IXJ specific stuff */ #include <linux/version.h> -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) -# include <linux/compiler.h> -#endif #include <linux/ixjuser.h> #include "asterisk.h" Everything builds fine, but I haven't a clue how to test it. I'm inclined to think that if it builds, it should be OK. What y'all think? TIA. -- Bill in Denver