summaryrefslogtreecommitdiff
path: root/libelf/_libelf.h
diff options
context:
space:
mode:
authorWez Furlong <wez@messagesystems.com>2012-03-24 11:38:02 -0400
committerWez Furlong <wez@messagesystems.com>2012-03-24 11:38:02 -0400
commit08eb167b40d66da3b4a3a21351a8ed5b99fc3a83 (patch)
tree1e0461bb581838f2a9b982651a92b6ed82991aca /libelf/_libelf.h
parent360c8b9c5c6424c753131c7253da393fa6aab71f (diff)
downloadctf-08eb167b40d66da3b4a3a21351a8ed5b99fc3a83.tar.gz
always build our libelf, as our libdwarf doesn't get along with the
system libelf on linux
Diffstat (limited to 'libelf/_libelf.h')
-rw-r--r--libelf/_libelf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libelf/_libelf.h b/libelf/_libelf.h
index 8367f2e..eb86f17 100644
--- a/libelf/_libelf.h
+++ b/libelf/_libelf.h
@@ -58,6 +58,7 @@ extern struct _libelf_globals _libelf;
#define LIBELF_ELF_ERROR_MASK 0xFF
#define LIBELF_OS_ERROR_SHIFT 8
+#define ROUNDUP2(V,N) (V) = ((((V) + (N) - 1)) & ~((N) - 1))
#define LIBELF_SET_ERROR(E, O) do { \
LIBELF_PRIVATE(error) = ((ELF_E_##E & LIBELF_ELF_ERROR_MASK)| \