The source project of this merge request has been removed.
Fix undeclared identifier 'basename' build failure with musl libc
'basename' is undeclared for cplusplus if using musl. Utilize g_path_get_basename instead for better portability.
fdebug-prefix-map=TOPDIR/build/tmp/work/cortexa57-yoe-linux-musl/gparted/1.4.0-r0/ recipe-sysroot-native=-fvisibility-inlines-hidden -c -o Dialog_Disklabel.o ../../ gparted-1.4.0/src/Dialog_Disklabel.cc ../../gparted-1.4.0/src/BCache_Info.cc:52:33:
error: use of undeclared identifier 'basename'; did you mean 'g_basename'? return "/dev/" + Glib::ustring(basename(buf)); ^~~~~~~~ g_basename
Edited by Mike Fleetwood
Merge request reports
Activity
Filter activity
Please register or sign in to reply