From c4f467dac9d45cd7c0fe59654111612eb61332d9 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Tue, 29 May 2012 18:54:21 -0400 Subject: [PATCH] align header: define PAGE_SIZE Signed-off-by: Mathieu Desnoyers --- include/babeltrace/align.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/babeltrace/align.h b/include/babeltrace/align.h index d5197cb4..c5589c43 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)) -- 2.34.1