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.
This commit is contained in:
parent
a4b587cb06
commit
f84106910d
1 changed files with 5 additions and 1 deletions
|
@ -18,7 +18,11 @@
|
|||
#define GRALLOC_PRIV_H_
|
||||
|
||||
#include <stdint.h>
|
||||
#include <asm/page.h>
|
||||
#ifdef HAVE_ANDROID_OS // just want PAGE_SIZE define
|
||||
# include <asm/page.h>
|
||||
#else
|
||||
# include <sys/user.h>
|
||||
#endif
|
||||
#include <limits.h>
|
||||
#include <sys/cdefs.h>
|
||||
#include <hardware/gralloc.h>
|
||||
|
|
Loading…
Reference in a new issue