From 5f12ffe1239a5e4f8d4e98e2dff4e191a71f4693 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Wed, 12 Sep 2018 10:19:54 -0400 Subject: 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. --- src/thread/pthread_atfork.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/thread/pthread_atfork.c') diff --git a/src/thread/pthread_atfork.c b/src/thread/pthread_atfork.c index c6f77b3f..76497401 100644 --- a/src/thread/pthread_atfork.c +++ b/src/thread/pthread_atfork.c @@ -1,5 +1,6 @@ #include #include "libc.h" +#include "lock.h" static struct atfork_funcs { void (*prepare)(void); -- cgit v1.2.1