Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sysfs: Fix basename() build with musl #38

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Commits on Jun 6, 2018

  1. sysfs: Fix basename() build with musl

    musl provides only standard basename() which accepts non-const string.
    This fixes build error with musl C library:
    
        | sysfs.cc: In function 'std::__cxx11::string sysfs_getbustype(const string&)':
        | sysfs.cc:102:21: error: 'basename' was not declared in this scope
        |        "/devices/" + basename(path.c_str());
        |                      ^~~~~~~~
    
    Signed-off-by: Krzysztof Kozlowski <[email protected]>
    krzk committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    c017010 View commit details
    Browse the repository at this point in the history