Bug 151573 - unistd.h and bits/unistd.h have conflicting declarations of pread ()
Summary: unistd.h and bits/unistd.h have conflicting declarations of pread ()
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: glibc
Version: rawhide
Hardware: i386
OS: Linux
medium
high
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-03-20 00:28 UTC by Miloslav Trmač
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version: 2.3.4-16
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-03-20 14:52:44 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Miloslav Trmač 2005-03-20 00:28:59 UTC
Description of problem:

$ cat foo.c
#define _XOPEN_SOURCE 600
#define _FILE_OFFSET_BITS 64
#include <unistd.h>
$ gcc -D_FORTIFY_SOURCE=2 -O2 -c foo.c
In file included from /usr/include/unistd.h:1052,
                 from foo.c:3:
/usr/include/bits/unistd.h:55: error: conflicting types for âpreadâ
/usr/include/unistd.h:341: error: previous declaration of âpreadâ was here

 
Version-Release number of selected component (if applicable):
glibc-2.3.4-15

Additional info:
Maybe just s/__off_t/__off64_t/ on bits/unistd.h line 54


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