* [PATCH] libext2fs: change getpagesize to sysconf
@ 2011-12-07 16:16 Mike Frysinger
2012-01-10 2:38 ` Ted Ts'o
0 siblings, 1 reply; 2+ messages in thread
From: Mike Frysinger @ 2011-12-07 16:16 UTC (permalink / raw)
To: linux-ext4
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>
---
lib/ext2fs/tdb.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/lib/ext2fs/tdb.c b/lib/ext2fs/tdb.c
index 83c834e..61e30ed 100644
--- a/lib/ext2fs/tdb.c
+++ b/lib/ext2fs/tdb.c
@@ -114,10 +114,6 @@ static TDB_DATA tdb_null;
#define u32 unsigned
#endif
-#ifndef HAVE_GETPAGESIZE
-#define getpagesize() 0x2000
-#endif
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-01-10 2:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-07 16:16 [PATCH] libext2fs: change getpagesize to sysconf Mike Frysinger
2012-01-10 2:38 ` Ted Ts'o
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).