projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup: add missing newline
[babeltrace.git]
/
include
/
babeltrace
/
align.h
diff --git
a/include/babeltrace/align.h
b/include/babeltrace/align.h
index 00bd4cb3b6d84dca0ec61666d4834756bcf43301..c5589c43aca6253a42470cb6b42214d5763ac943 100644
(file)
--- a/
include/babeltrace/align.h
+++ b/
include/babeltrace/align.h
@@
-17,7
+17,13
@@
* all copies or substantial portions of the Software.
*/
* all copies or substantial portions of the Software.
*/
-#include <ctf/compiler.h>
+#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))
#define ALIGN(x, a) __ALIGN_MASK(x, (typeof(x))(a) - 1)
#define __ALIGN_MASK(x, mask) (((x) + (mask)) & ~(mask))
This page took
0.031687 seconds
and
4
git commands to generate.