X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Falign.h;h=c5589c43aca6253a42470cb6b42214d5763ac943;hb=c4f467dac9d45cd7c0fe59654111612eb61332d9;hp=00bd4cb3b6d84dca0ec61666d4834756bcf43301;hpb=ccd7e1c86f36342b0b06651cc52df86bb663c271;p=babeltrace.git diff --git a/include/babeltrace/align.h b/include/babeltrace/align.h index 00bd4cb3..c5589c43 100644 --- a/include/babeltrace/align.h +++ b/include/babeltrace/align.h @@ -17,7 +17,13 @@ * all copies or substantial portions of the Software. */ -#include +#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))