From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55721) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2x3D-0001fr-B5 for qemu-devel@nongnu.org; Tue, 14 Jan 2014 01:00:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W2x3C-0000U5-9n for qemu-devel@nongnu.org; Tue, 14 Jan 2014 01:00:35 -0500 From: Stefan Weil Date: Tue, 14 Jan 2014 07:00:28 +0100 Message-Id: <1389679228-15870-1-git-send-email-sw@weilnetz.de> Subject: [Qemu-devel] [PATCH] exec: Exclude non portable function for MinGW List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, Stefan Weil cpu_physical_memory_set_dirty_lebitmap calls getpageaddr and ffsl which are unavailable for MinGW. As the function is unused for MinGW, it can simply be excluded from compilation. Signed-off-by: Stefan Weil --- include/exec/ram_addr.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/exec/ram_addr.h b/include/exec/ram_addr.h index 33c8acc..481a447 100644 --- a/include/exec/ram_addr.h +++ b/include/exec/ram_addr.h @@ -79,6 +79,7 @@ static inline void cpu_physical_memory_set_dirty_range(ram_addr_t start, xen_modified_memory(start, length); } +#if !defined(_WIN32) static inline void cpu_physical_memory_set_dirty_lebitmap(unsigned long *bitmap, ram_addr_t start, ram_addr_t pages) @@ -127,6 +128,7 @@ static inline void cpu_physical_memory_set_dirty_lebitmap(unsigned long *bitmap, } } } +#endif /* not _WIN32 */ static inline void cpu_physical_memory_clear_dirty_range(ram_addr_t start, ram_addr_t length, -- 1.7.10.4