procd: use standard POSIX header for basename()

This commit is contained in:
coolsnowwolf 2024-12-03 13:28:24 +08:00
parent 4ebc73897e
commit 3022abc26c

View File

@ -0,0 +1,13 @@
diff --git a/trace/trace.c b/trace/trace.c
index 6fd321f..e257d89 100644
--- a/trace/trace.c
+++ b/trace/trace.c
@@ -23,7 +23,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
-#include <string.h>
+#include <libgen.h>
#include <syslog.h>
#include <limits.h>