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

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Jan 30 12:30:06 CST 2009


The following issue has been UPDATED. 
====================================================================== 
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:                     closed
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:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2008-12-03 10:48 CST
Last Modified:              2009-01-30 12:30 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.

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

---------------------------------------------------------------------- 
 (0099140) jpeeler (administrator) - 2009-01-30 12:30
 http://bugs.digium.com/view.php?id=14016#c99140 
---------------------------------------------------------------------- 
This was done in 4597 for Zaptel and 4496 in DAHDI. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-01-30 12:30 jpeeler        Note Added: 0099140                          
2009-01-30 12:30 jpeeler        Status                   new => closed       
2009-01-30 12:30 jpeeler        Resolution               open => fixed       
======================================================================




More information about the asterisk-bugs mailing list