Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Musl libc does not seems to provide roundup2
Baptiste Daroussin committed 7 years ago
commit f586d9ea56b664ff7e5aaff45b33bee0ac893b3b
parent 953eb23
2 files changed +8 -0
modified external/libelf/elf_strptr.c
@@ -31,6 +31,10 @@

#include "_libelf.h"

+
#ifndef roundup2
+
#define	roundup2(x, y)	(((x)+((y)-1))&(~((y)-1))) /* if y is powers of two */
+
#endif
+

ELFTC_VCSID("$Id$");

/*
modified external/libelf/elf_update.c
@@ -41,6 +41,10 @@
#include <sys/mman.h>
#endif

+
#ifndef roundup2
+
#define	roundup2(x, y)	(((x)+((y)-1))&(~((y)-1))) /* if y is powers of two */
+
#endif
+

ELFTC_VCSID("$Id$");

/*