align header: define PAGE_SIZE
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 29 May 2012 22:54:21 +0000 (18:54 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 29 May 2012 22:54:21 +0000 (18:54 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/babeltrace/align.h

index d5197cb42f5e6bb6b7d0ce991bb7088eff65749b..c5589c43aca6253a42470cb6b42214d5763ac943 100644 (file)
  */
 
 #include <babeltrace/compiler.h>
+#include <unistd.h>
+#include <limits.h>
+
+#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))
This page took 0.024331 seconds and 4 git commands to generate.