about summary refs log tree commit diff
path: root/src/malloc
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2018-09-12 10:19:54 -0400
committerRich Felker <dalias@aerifal.cx>2018-09-12 18:40:35 -0400
commit5f12ffe1239a5e4f8d4e98e2dff4e191a71f4693 (patch)
tree39d2397a4c158aa45e26538b0798fe2e23e0d431 /src/malloc
parent09e87db555045bf3bcef69c692df24d13b2856fe (diff)
downloadmusl-5f12ffe1239a5e4f8d4e98e2dff4e191a71f4693.tar.gz
musl-5f12ffe1239a5e4f8d4e98e2dff4e191a71f4693.tar.xz
musl-5f12ffe1239a5e4f8d4e98e2dff4e191a71f4693.zip
split internal lock API out of libc.h, creating lock.h
this further reduces the number of source files which need to include
libc.h and thereby be potentially exposed to libc global state and
internals.

this will also facilitate further improvements like adding an inline
fast-path, if we want to do so later.
Diffstat (limited to 'src/malloc')
-rw-r--r--src/malloc/lite_malloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/malloc/lite_malloc.c b/src/malloc/lite_malloc.c
index 49157d36..050d84f6 100644
--- a/src/malloc/lite_malloc.c
+++ b/src/malloc/lite_malloc.c
@@ -2,7 +2,7 @@
 #include <stdint.h>
 #include <limits.h>
 #include <errno.h>
-#include "libc.h"
+#include "lock.h"
 #include "malloc_impl.h"
 
 #define ALIGN 16