[PATCH] trace-cmd: utest: include libgen.h for POSIX basename()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: [PATCH] trace-cmd: utest: include libgen.h for POSIX basename()
- From: Fiona Klute <fiona.klute@xxxxxx>
- Date: Sun, 11 Aug 2024 15:55:16 +0200
- Cc: Fiona Klute <fiona.klute@xxxxxx>
- Ui-outboundreport: notjunk:1;M01:P0:4/K2i8pVOZQ=;BsPFRTahbi75XZ623bS/yewmfTl 6Dq43E8tNcpgkmTMODWTeh5o/LUZ2RuLBuZ4A3WCkg9zMXCn110D2OyLdltrFYJmaOMMZeZED AdbWeO5qSI1lrtmSNY0sl68W/jgt9ayU5wEnEOD/kSJ15RybN/Pb+sXQEBR/lOfEkWavy+78K nt7/LcYPy/EpggynrXAdCVbprabaDoCE+H2hHt08V09ryq6NDdiEhjgaKnV54si9ICpsYkFRH k/ZBsrixhKvqCVBGvnX2H12kRoPBcUehCrhiXcNnE6Qr+tpWsiwdHEZwWvymnf3XDHSTFTlSB N4SWaqR3BdKccaCSPQoXh0TJRaoxbsZ/k+wt+1fhdiD7o1DR3QDGHwXrk7KAm/105KVnK1vbX EdKwdViKj14xynF+9GmRU3McJqHT5yqOgj/rXe1Nld7OFftGRs54ofJ0YXLBSCw8C1lVeN+L1 o+3QTuT18SFvkZsFFNk9hXHR7K3mW8VoVh+DYZsRIDoDBFR1y6OdpeCibuFwt1AaiEpMpukwt MYBiOSsQJbcreYNcsfENf6Mobby9dZk46xAcp+55nhzNX5fHuE+3IdQkDBUmzW03pmC0hqK3v wUWL0CKPbwvxV0b8WUa5wxjvpes2Uzv5DZKnRHSRwdspolerxbzcXpazgAcqUjUuZdQbm0M/d W9+BkKkwcdvbCRYQuVq1xVREA06xIz4Jbr39S5qtV0G9FrCxmIRsPj8ZhNFNrWwCzJtPFakma aywZWSBZDpMPMSmdA+ZEp9YojADfuu7itEM+hDhir5E0uK6739I0BKU6b8jDvslgj9P8fBHmV 9nhT+0Xy1rHvQi8XEkjLbifg==
This fixes building utest/trace-utest.c with musl (e.g. on Alpine),
which doesn't provide the GNU version.
Signed-off-by: Fiona Klute <fiona.klute@xxxxxx>
---
utest/trace-utest.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/utest/trace-utest.c b/utest/trace-utest.c
index 051a0285..6bb190ee 100644
--- a/utest/trace-utest.c
+++ b/utest/trace-utest.c
@@ -7,6 +7,7 @@
#include <unistd.h>
#include <getopt.h>
#include <stdlib.h>
+#include <libgen.h>
#include <CUnit/CUnit.h>
#include <CUnit/Basic.h>
--
2.45.2
[Index of Archives]
[Linux USB Development]
[Linux USB Development]
[Linux Audio Users]
[Yosemite Hiking]
[Linux Kernel]
[Linux SCSI]