sys-freebsd/freebsd-libexec: Added some define for upgrade.

Closes: https://github.com/gentoo/gentoo/pull/2083

Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
This commit is contained in:
Yuta Satoh
2016-08-15 21:23:22 +09:00
committed by Patrice Clement
parent 6c3d4938f4
commit 7c1b45db1c

View File

@@ -72,6 +72,9 @@ src_prepare() {
# taken from sys/sys/cdefs.h
echo '#define __compiler_membar() __asm __volatile(" " : : : "memory")' >> "${S}"/rtld-elf/rtld.h
# taken from sys/sys/mman.h
echo '#define MAP_ALIGNED(n) ((n) << MAP_ALIGNMENT_SHIFT)' >> "${S}"/rtld-elf/rtld.h
echo '#define MAP_ALIGNMENT_SHIFT 24' >> "${S}"/rtld-elf/rtld.h
echo '#define MAP_ALIGNMENT_MASK MAP_ALIGNED(0xff)' >> "${S}"/rtld-elf/rtld.h
echo '#define MAP_ALIGNED_SUPER MAP_ALIGNED(1)' >> "${S}"/rtld-elf/rtld.h
fi
}