[Home]

Summary:ASTERISK-02782: [PATCH] chan_phone.c does not compile with 2.6 kernel headers
Reporter:zozo (zozo)Labels:
Date Opened:2004-11-11 07:07:24.000-0600Date Closed:2008-01-15 15:13:27.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) 03-ijxphone-2.6-fix.diff
Description:When compiling asterisk on a system with 2.6 kernel headers installed, it fails with:

In file included from chan_phone.c:37:
/usr/include/linux/ixjuser.h:353: error: syntax error before '*' token

This is because __user isn't defined.

Including linux/compiler.h before linux/ixjuser.h fixes this.
Comments:By: Mark Spencer (markster) 2004-11-11 09:57:38.000-0600

Fixed in CVS, thanks!

By: Russell Bryant (russell) 2004-11-12 09:14:43.000-0600

fixed in 1.0 - will be in 1.0.3

By: Digium Subversion (svnbot) 2008-01-15 15:13:09.000-0600

Repository: asterisk
Revision: 4202

U   trunk/channels/chan_phone.c

------------------------------------------------------------------------
r4202 | markster | 2008-01-15 15:13:08 -0600 (Tue, 15 Jan 2008) | 2 lines

Fix chan_phone for kernel 2.6 (bug ASTERISK-2782)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=4202

By: Digium Subversion (svnbot) 2008-01-15 15:13:27.000-0600

Repository: asterisk
Revision: 4225

U   branches/v1-0/channels/chan_phone.c

------------------------------------------------------------------------
r4225 | russell | 2008-01-15 15:13:26 -0600 (Tue, 15 Jan 2008) | 2 lines

fix to compile chan_phone with 2.6 kernel headers (bug ASTERISK-2782)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=4225