[ALSA - lib 0002256]: timer.h doesn't compile with -ansi

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=2256> 
======================================================================
Reported By:                joeljkp
Assigned To:                
======================================================================
Project:                    ALSA - lib
Issue ID:                   2256
Category:                   0_general
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
======================================================================
Date Submitted:             07-04-2006 05:51 CEST
Last Modified:              07-04-2006 07:01 CEST
======================================================================
Summary:                    timer.h doesn't compile with -ansi
Description: 
timer.h causes programs not to compile with gcc 4.0.3 and -ansi:

$ cat test.c
#include <alsa/asoundlib.h>
$ cc -c -ansi test.c
In file included from /usr/include/alsa/asoundlib.h:51,
                 from test.c:1:
/usr/include/alsa/timer.h:108: error: field &#8216;tstamp&#8217; has
incomplete type
$
======================================================================

----------------------------------------------------------------------
 joeljkp - 07-04-06 07:01 
----------------------------------------------------------------------
Adding the following line at the top of asoundlib.h, timer.h, or above the
#include <time.h> in global.h fixes the problem.

#define _POSIX_C_SOURCE 199506L

Issue History
Date Modified  Username       Field                    Change              
======================================================================
07-04-06 05:51 joeljkp        New Issue                                    
07-04-06 05:52 joeljkp        Issue Monitored: joeljkp                     
07-04-06 07:01 joeljkp        Note Added: 0010815                          
======================================================================



Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux