From: bugtrack@alsa-project.org Subject: [ALSA - lib 0002256]: timer.h doesn't compile with -ansi Date: Wed, 5 Jul 2006 15:31:12 +0200 Message-ID: <1528c6bd0f6ed5641e4b3f23824d1e08@bugtrack.alsa-project.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from bugtrack.alsa-project.org (gate.perex.cz [85.132.177.35]) by alsa.jcu.cz (ALSA's E-mail Delivery System) with ESMTP id 5E708256 for ; Wed, 5 Jul 2006 15:31:12 +0200 (MEST) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@lists.sourceforge.net Errors-To: alsa-devel-bounces@lists.sourceforge.net To: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org A NOTE has been added to this issue. ====================================================================== ====================================================================== 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-05-2006 15:31 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 $ 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 ‘tstamp’ 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 in global.h fixes the problem. #define _POSIX_C_SOURCE 199506L ---------------------------------------------------------------------- tiwai - 07-05-06 15:31 ---------------------------------------------------------------------- The patch results in compile warnings of alsa-lib itself. I'm also a bit concerned to define it in that place, too... 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 07-04-06 18:43 joeljkp File Added: bug2256.patch 07-05-06 15:31 tiwai Note Added: 0010840 ====================================================================== 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