X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=include%2Fbabeltrace%2Falign.h;h=c5589c43aca6253a42470cb6b42214d5763ac943;hp=00bd4cb3b6d84dca0ec61666d4834756bcf43301;hb=32cfb8adf760170061946d1f802677fb02f6dc96;hpb=ccd7e1c86f36342b0b06651cc52df86bb663c271 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))