about summary refs log tree commit diff
path: root/library/std/src/sys/windows/alloc.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/std/src/sys/windows/alloc.rs')
-rw-r--r--library/std/src/sys/windows/alloc.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/sys/windows/alloc.rs b/library/std/src/sys/windows/alloc.rs
index fe00c08aa6a..d53ea16005f 100644
--- a/library/std/src/sys/windows/alloc.rs
+++ b/library/std/src/sys/windows/alloc.rs
@@ -16,6 +16,7 @@ mod tests;
 // Flag to indicate that the memory returned by `HeapAlloc` should be zeroed.
 const HEAP_ZERO_MEMORY: c::DWORD = 0x00000008;
 
+#[link(name = "kernel32")]
 extern "system" {
     // Get a handle to the default heap of the current process, or null if the operation fails.
     //