[Pvfs2-developers] alt-aio multiple pread decls

Pete Wyckoff pw at osc.edu
Thu Oct 19 13:23:34 EDT 2006


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?

		-- Pete


More information about the Pvfs2-developers mailing list