Skip to content
  • alpine-mips-patches's avatar
    community/gsoap: make sure to define _GNU_SOURCE · 88b9ddc2
    alpine-mips-patches authored and Natanael Copa's avatar Natanael Copa committed
    'strtod_l' is guarded by _GNU_SOURCE which gsoap fails to define on
    musl and compilation reports warnings like this:
    
    stdsoap2.c:16352:19: warning: implicit declaration of function 'strtod_l'; did you mean 'strtok_r'? [-Wimplicit-function-declaration]
           *p = (float)strtod_l(s, &r, SOAP_LOCALE(soap));
                       ^~~~~~~~
                       strtok_r
    
    On most hard-float systems (x86_64 and mips*hf for sure) this code
    will use some random garbage from the integer register.
    
    ...and update musl-fixes.patches to cover yet another attempt to
    use glibc-style strerror_r() (triggered by _GNU_SOURCE).
    
    The implicitly declared isatty() at soapcpp2_lex.c:1944 is ignored.
    88b9ddc2