From 3bd9e954868ce92dea87ebf6d14d743cfa278a7c Mon Sep 17 00:00:00 2001 From: SeokYeon Hwang Date: Thu, 22 Oct 2015 14:04:40 +0900 Subject: [PATCH] hax-all: just use compiler's builtin ffsl() Toolchains of some platforms don't have ffsl() function. To solve it, just use compiler's builtin ffsl(). Change-Id: I176aabe730b0bf8afbd5a5d9323e73b203855cdb Signed-off-by: SeokYeon Hwang --- target-i386/hax-all.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/target-i386/hax-all.c b/target-i386/hax-all.c index 3ca3981e17..f91706c9e6 100644 --- a/target-i386/hax-all.c +++ b/target-i386/hax-all.c @@ -380,7 +380,9 @@ hax_region_del(MemoryListener *listener, MemoryRegionSection *section) /* currently we fake the dirty bitmap sync, always dirty */ // avoid implicit declaration warning on Windows -int ffsl(long value); +#ifndef ffsl +#define ffsl __builtin_ffsl +#endif static void hax_log_sync(MemoryListener *listener, MemoryRegionSection *section) { MemoryRegion *mr = section->mr; -- 2.34.1