[asterisk-bugs] [Zaptel 0014016]: [patch] include linux/semaphore.h for kernel 2.6.26 and onwards

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Dec 3 10:51:31 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14016 
====================================================================== 
Reported By:                travishein
Assigned To:                
====================================================================== 
Project:                    Zaptel
Issue ID:                   14016
Category:                   General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Zaptel Version:              SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!): 4591 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-12-03 10:48 CST
Last Modified:              2008-12-03 10:51 CST
====================================================================== 
Summary:                    [patch] include linux/semaphore.h for kernel 2.6.26
and onwards
Description: 
The kernel/xpp/xpd.h includes <asm/semaphore.h>

As of Linux kernel version 2.6.26, the asm/semaphore.h has been
deprecated, favoring an include of <linux/semaphore.h> instead.

When attempting to compile zaptel in Linux 2.6.27, as the current sources
are, we get an error 'unable to include <asm/semaphore.h> (because it has
been removed now)

This patch performs the check for Linux kernel version 2.6.26, if the
version is before this, the existing #include <asm/semaphore.h> is still
used,

but if Linux kernel version >= 2.6.26 is found, then #include
<linux/semaphore.h> is used instead.

====================================================================== 

---------------------------------------------------------------------- 
 (0095727) travishein (reporter) - 2008-12-03 10:51
 http://bugs.digium.com/view.php?id=14016#c95727 
---------------------------------------------------------------------- 
See the article on kerneltrap site: 
https://kerneltrap.org/mailarchive/linux-kernel/2008/2/28/1010394 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-12-03 10:51 travishein     Note Added: 0095727                          
======================================================================




More information about the asterisk-bugs mailing list