[PATCH RESEND] Fix build error about missing PAGE_SIZE

Abdoulaye Walsimou Gaye awg at embtoolkit.org
Fri Sep 3 18:21:02 UTC 2010

This patch fixes the following build error:

  CC libc/misc/internals/__h_errno_location.os
  CC libc/misc/internals/parse_config.os
libc/misc/internals/parse_config.c: In function 'bb_get_chunk_with_continuation':
libc/misc/internals/parse_config.c:77: error: 'PAGE_SIZE' undeclared (first use in this function)
libc/misc/internals/parse_config.c:77: error: (Each undeclared identifier is reported only once
libc/misc/internals/parse_config.c:77: error: for each function it appears in.)
make[2]: *** [libc/misc/internals/parse_config.os] Error 1

Signed-off-by: Abdoulaye Walsimou Gaye <awg at embtoolkit.org>
 libc/misc/internals/parse_config.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libc/misc/internals/parse_config.c b/libc/misc/internals/parse_config.c
index e38025f..8fa324e 100644
--- a/libc/misc/internals/parse_config.c
+++ b/libc/misc/internals/parse_config.c
@@ -44,6 +44,7 @@ int parse_main(int argc UNUSED_PARAM, char **argv)
 # include <unistd.h>
 # include <string.h>
 # include <malloc.h>
+# include <bits/uClibc_page.h>
 # include "internal/parse_config.h"
 # ifndef FAST_FUNC
 #  define FAST_FUNC

More information about the uClibc mailing list