]> Git Repo - qemu.git/blobdiff - exec.c
target/arm: Add v8M stack checks on ADD/SUB/MOV of SP
[qemu.git] / exec.c
diff --git a/exec.c b/exec.c
index 6826c8337d550a4a86dbaf96d1ca2d55e5b4dbf1..d0821e69aadaa4af9317ad36332ea570136c3f65 100644 (file)
--- a/exec.c
+++ b/exec.c
@@ -1734,7 +1734,7 @@ long qemu_getrampagesize(void)
 }
 #endif
 
-#ifdef __linux__
+#ifdef CONFIG_POSIX
 static int64_t get_file_size(int fd)
 {
     int64_t size = lseek(fd, 0, SEEK_END);
@@ -2230,7 +2230,7 @@ static void ram_block_add(RAMBlock *new_block, Error **errp, bool shared)
     }
 }
 
-#ifdef __linux__
+#ifdef CONFIG_POSIX
 RAMBlock *qemu_ram_alloc_from_fd(ram_addr_t size, MemoryRegion *mr,
                                  uint32_t ram_flags, int fd,
                                  Error **errp)
This page took 0.025154 seconds and 4 git commands to generate.