[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:48:31 CST 2008
The following issue has been SUBMITTED.
======================================================================
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:48 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.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2008-12-03 10:48 travishein Zaptel Version => SVN
2008-12-03 10:48 travishein SVN Branch (only for SVN checkouts, not tarball
releases) => 1.4
2008-12-03 10:48 travishein SVN Revision (number only!) => 4591
======================================================================
More information about the asterisk-bugs
mailing list