Skip to content
Snippets Groups Projects
  • Arnav Singh's avatar
    0389cb75
    community/libgpiod: fix miscompilation from implicit basename · 0389cb75
    Arnav Singh authored and omni's avatar omni committed
    musl removed basename from string.h, so the code was falling back to
    an implicit declaration of `int basename(int)` which mangled the arg pointer
    and returned an equally nonsensical one.
    
    This patch should become unnecessary when libgpiod is updated to 2.x
    because newer versions do not use basename.
    
    Fixes #15997
    0389cb75
    History
    community/libgpiod: fix miscompilation from implicit basename
    Arnav Singh authored and omni's avatar omni committed
    musl removed basename from string.h, so the code was falling back to
    an implicit declaration of `int basename(int)` which mangled the arg pointer
    and returned an equally nonsensical one.
    
    This patch should become unnecessary when libgpiod is updated to 2.x
    because newer versions do not use basename.
    
    Fixes #15997