From: Mathieu Desnoyers Date: Tue, 29 May 2012 22:54:21 +0000 (-0400) Subject: align header: define PAGE_SIZE X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=c4f467dac9d45cd7c0fe59654111612eb61332d9;p=deliverable%2Fbabeltrace.git align header: define PAGE_SIZE Signed-off-by: Mathieu Desnoyers --- diff --git a/include/babeltrace/align.h b/include/babeltrace/align.h index d5197cb42..c5589c43a 100644 --- a/include/babeltrace/align.h +++ b/include/babeltrace/align.h @@ -18,6 +18,12 @@ */ #include +#include +#include + +#ifndef PAGE_SIZE /* Cygwin limits.h defines its own PAGE_SIZE */ +#define PAGE_SIZE sysconf(_SC_PAGE_SIZE) +#endif #define ALIGN(x, a) __ALIGN_MASK(x, (typeof(x))(a) - 1) #define __ALIGN_MASK(x, mask) (((x) + (mask)) & ~(mask))