Bug 66370 - ao.h should include stdio.h
Summary: ao.h should include stdio.h
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: libao
Version: 9
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-06-08 23:43 UTC by Michael Schwendt
Modified: 2014-03-17 02:27 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2003-08-19 13:56:02 UTC
Embargoed:


Attachments (Terms of Use)
patch (325 bytes, patch)
2002-06-08 23:45 UTC, Michael Schwendt
no flags Details | Diff

Description Michael Schwendt 2002-06-08 23:43:10 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020605

Description of problem:
struct ao_device in <ao/ao.h> uses "FILE" from <stdio.h> and hence should
include that header.

Version-Release number of selected component (if applicable):
0.8.2-2 and 0.8.2-3

How reproducible:
Always

Steps to Reproduce:
Compile minimal program or any other program that  includes ao.h but not
stdio.h, e.g. "gcc -c test.c":

/* test.c */

#include <ao/ao.h>

int x;



Actual Results:  In file included from test.c:1:
/usr/include/ao/ao.h:80: parse error before `FILE'
/usr/include/ao/ao.h:80: warning: no semicolon at end of struct or union
/usr/include/ao/ao.h:87: parse error before `}'
/usr/include/ao/ao.h:87: warning: data definition has no type or storage class
/usr/include/ao/ao.h:99: parse error before `*'
/usr/include/ao/ao.h:100: parse error before `*'
/usr/include/ao/ao.h:102: parse error before `*'
/usr/include/ao/ao.h:103: parse error before `*'
/usr/include/ao/ao.h:105: parse error before `*'
/usr/include/ao/ao.h:106: parse error before `*'
/usr/include/ao/ao.h:126: parse error before `*'
/usr/include/ao/ao.h:127: warning: data definition has no type or storage class
/usr/include/ao/ao.h:128: parse error before `*'
/usr/include/ao/ao.h:129: warning: data definition has no type or storage class
/usr/include/ao/ao.h:131: parse error before `*'
/usr/include/ao/ao.h:132: parse error before `*'


Expected Results:  No errors.


Additional info:

Bug report has been sent to author, too.

Comment 1 Michael Schwendt 2002-06-08 23:45:50 UTC
Created attachment 60185 [details]
patch

Comment 2 Michael Schwendt 2003-08-19 13:56:02 UTC
Fix has been included in upstream CVS.



Note You need to log in before you can comment on or make changes to this bug.