musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/misc/syslog.c
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/misc/syslog.c
parent09e87db555045bf3bcef69c692df24d13b2856fe (diff)
downloadmusl-5f12ffe1239a5e4f8d4e98e2dff4e191a71f4693.tar.gz
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/misc/syslog.c')
-rw-r--r--src/misc/syslog.c 2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc/syslog.c b/src/misc/syslog.c
index 410709d7..13d4b0a6 100644
--- a/src/misc/syslog.c
+++ b/src/misc/syslog.c
@@ -9,7 +9,7 @@
#include <pthread.h>
#include <errno.h>
#include <fcntl.h>
-#include "libc.h"
+#include "lock.h"
static volatile int lock[1];
static char log_ident[32];
generated by cgit v1.2.1 (git 2.18.0) at 2025年11月06日 12:48:59 +0000

AltStyle によって変換されたページ (->オリジナル) /