From 33bd112e2f1b1522f4747f7069dda5aa0a103d6a Mon Sep 17 00:00:00 2001 From: "L. E. Segovia" Date: Sun, 4 Aug 2024 14:04:23 -0300 Subject: [PATCH] s390-tools: Fix compilation with musl and gcc 14 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit lscss.c: In function 'is_sch_vfio': lscss.c:392:20: error: implicit declaration of function 'basename' [-Wimplicit-function-declaration] 392 | if (strcmp(basename(driver_path), "vfio_ccw") == 0) device.c: In function 'device_read_active_attrib': device.c:426:45: error: implicit declaration of function 'basename'; did you mean 'rename'? [-Wimplicit-function-declaration] 426 | value = misc_strdup(basename(link)); | ^~~~~~~~ | rename Closes: https://github.com/ibm-s390-linux/s390-tools/pull/192 [hoeppner@linux.ibm.com: Sort includes] Signed-off-by: L. E. Segovia Signed-off-by: Jan Höppner --- zconf/css/lscss.c | 1 + zdev/src/ccw.c | 1 + zdev/src/ccwgroup.c | 1 + zdev/src/device.c | 1 + zdev/src/generic_ccw.c | 1 + 5 files changed, 5 insertions(+) diff --git a/zconf/css/lscss.c b/zconf/css/lscss.c index fd58bb3a..6d892774 100644 --- a/zconf/css/lscss.c +++ b/zconf/css/lscss.c @@ -7,6 +7,7 @@ * it under the terms of the MIT license. See LICENSE for details. */ +#include #include #include diff --git a/zdev/src/ccw.c b/zdev/src/ccw.c index 9d332220..b4e1c1b4 100644 --- a/zdev/src/ccw.c +++ b/zdev/src/ccw.c @@ -8,6 +8,7 @@ */ #include +#include #include #include #include diff --git a/zdev/src/ccwgroup.c b/zdev/src/ccwgroup.c index 61e12ccf..f27cda4f 100644 --- a/zdev/src/ccwgroup.c +++ b/zdev/src/ccwgroup.c @@ -7,6 +7,7 @@ * it under the terms of the MIT license. See LICENSE for details. */ +#include #include #include #include diff --git a/zdev/src/device.c b/zdev/src/device.c index 864108bd..fedcab91 100644 --- a/zdev/src/device.c +++ b/zdev/src/device.c @@ -7,6 +7,7 @@ * it under the terms of the MIT license. See LICENSE for details. */ +#include #include #include #include diff --git a/zdev/src/generic_ccw.c b/zdev/src/generic_ccw.c index c7f144a7..ff560e94 100644 --- a/zdev/src/generic_ccw.c +++ b/zdev/src/generic_ccw.c @@ -7,6 +7,7 @@ * it under the terms of the MIT license. See LICENSE for details. */ +#include #include #include "lib/util_path.h"