[asterisk-bugs] [DAHDI-linux 0017197]: Dahdi dummy includes time.h, should be timer.h for low-res timer....

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Apr 16 19:21:51 CDT 2010


The following issue has been SUBMITTED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17197 
====================================================================== 
Reported By:                murf
Assigned To:                
====================================================================== 
Project:                    DAHDI-linux
Issue ID:                   17197
Category:                   dahdi_dummy
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
JIRA:                        
Reviewboard Link:            
====================================================================== 
Date Submitted:             2010-04-16 19:21 CDT
Last Modified:              2010-04-16 19:21 CDT
====================================================================== 
Summary:                    Dahdi dummy includes time.h, should be timer.h for
low-res timer....
Description: 
It was reported that using older kernels would allow dahdi-dummy to be
successfully compiled...

A make failed on dahdi_dummy.c, with
various timer funcs not being defined. I then spent some time and
determined that the CONFIG_HIGH_RES_TIMERS was not set in .config in the
kernel source, and that the include <linux/time.h> did not bring in the
right stuff. 

I found that if I included <linux/timer.h> instead, that the make would
complete, loaded fine, and tested (with dahdi_test -v) just fine also!

So, this may signal that that in 2.6.32 and above, you may have to include
timer.h instead of time.h; I have no idea if this is a new thing, or just
not spotted before, or some weirdness in 2.6.32 alone. Or even just in this
version of 2.6.32. Just giving a heads-up here.


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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-04-16 19:21 murf           New Issue                                    
======================================================================




More information about the asterisk-bugs mailing list