From f84106910d128885775b1e7b75e451d7d389889c Mon Sep 17 00:00:00 2001 From: Andy McFadden Date: Tue, 7 Jul 2009 11:29:32 -0700 Subject: [PATCH] Fix build on some linux distros. The place where the PAGE_SIZE value is defined varies, mostly because you're not supposed to be using it directly. sysconf(_SC_PAGE_SIZE) is the approved method, and in fact some Linux distros actually #define PAGE_SIZE to the library call. --- modules/gralloc/gralloc_priv.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/gralloc/gralloc_priv.h b/modules/gralloc/gralloc_priv.h index c3e34bdf..aa757b1c 100644 --- a/modules/gralloc/gralloc_priv.h +++ b/modules/gralloc/gralloc_priv.h @@ -18,7 +18,11 @@ #define GRALLOC_PRIV_H_ #include -#include +#ifdef HAVE_ANDROID_OS // just want PAGE_SIZE define +# include +#else +# include +#endif #include #include #include