Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
NetBSD defines roundup2() in <sys/param.h> already; use it.
Baptiste Daroussin committed 11 years ago
commit 6a57ce8f2d9064d212382d50314668fac4d60152
parent fd981ec
1 file changed +2 -0
modified libpkg/pkg_elf.c
@@ -74,7 +74,9 @@
/* FFR: when we support installing a 32bit package on a 64bit host */
#define _PATH_ELF32_HINTS       "/var/run/ld-elf32.so.hints"

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

static const char * elf_corres_to_string(const struct _elf_corres* m, int e);
static int elf_string_to_corres(const struct _elf_corres* m, const char *s);