[Pvfs2-developers] alt-aio multiple pread decls

Phil Carns pcarns at wastedcycles.org
Thu Oct 19 14:35:34 EDT 2006


Pete Wyckoff wrote:
> I get this when compiling with warnings:
> 
> ../pvfs2/src/io/trove/trove-dbpf/dbpf-alt-aio.c:156: warning: redundant redeclaration of 'pread'
> /usr/include/unistd.h:341: warning: previous declaration of 'pread' was here
> ../pvfs2/src/io/trove/trove-dbpf/dbpf-alt-aio.c:157: warning: redundant redeclaration of 'pwrite'
> /usr/include/unistd.h:344: warning: previous declaration of 'pwrite' was here
> 
> Seems the module.mk.in already adds _GNU_SOURCE, which turns on all
> the features, so we get pread and pwrite via the header files.  Do
> some systems need the explicit declaration in the C file still?

Not as far as I know - we shouldn't need any explicit declarations for 
pread() and pwrite()...

-Phil


More information about the Pvfs2-developers mailing list