ndppd: fix compile error with musl 402/head
authorMartin Strobel <arctus@crza.de>
Sun, 12 Aug 2018 16:03:38 +0000 (18:03 +0200)
committerMartin Strobel <arctus@crza.de>
Sun, 12 Aug 2018 16:03:38 +0000 (18:03 +0200)
commit9333cdff055f7afd716a7b5f2ed2c8aa5089e9e7
tree86fd1a519c5b427d75a126baa59ad935464715b0
parent76773ec5dd754730307c2cb6c07a21128766fb33
ndppd: fix compile error with musl

Error:
src/logger.cc: In static member function 'static std::string ndppd::logger::err()':
src/logger.cc:86:22: error: could not convert 'strerror_r((*__errno_location()), ((char*)(& buf)), sizeof (buf))'
                            from 'int' to 'std::string {aka std::basic_string<char>}'
    return strerror_r(errno, buf, sizeof(buf));

Added and modified some patches from
https://github.com/DanielAdolfsson/ndppd/compare/eb81b8f2d6d4d33545570402b049a73880b9ad01...navossoc:master
(See https://github.com/DanielAdolfsson/ndppd/issues/40 for details)

Compile-tested: octeon + mpc85xx openwrt master, musl + uclibc++
                octeon openwrt master, glibc + libstdc++

Run-tested: octeon openwrt master, musl + uclibc++

Signed-off-by: Martin Strobel <arctus@crza.de>
ndppd/patches/0001-Version-bump.patch [new file with mode: 0644]
ndppd/patches/0002-Fixes-strerror_r-GNU-XSI.patch [new file with mode: 0644]
ndppd/patches/0003-fix-poll-header.patch [new file with mode: 0644]