Whamcloud - gitweb
libext2fs: change getpagesize to sysconf
authorMike Frysinger <vapier@gentoo.org>
Tue, 10 Jan 2012 02:19:48 +0000 (21:19 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 10 Jan 2012 02:19:48 +0000 (21:19 -0500)
commit24d364fc43601ea3d2e01cc506633302fa091d8f
treed6c0e72f766f72311e7be4802407c54c6c798b4b
parent65794cf159aa051ea3fe79db1950f562600b252e
libext2fs: change getpagesize to sysconf

Newer versions of glibc no longer export the getpagesize() prototype when
using recent versions of POSIX (_XOPEN_SOURCE).  So building tdb.c gives
use implicit function declaration warnings.  Fix the issue by using the
portable sysconf() function which returns the same answer.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/tdb.c