lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

001-unix-fix-compilation-against-musl-libc-1127.patch (995B)


      1 From eab45f0959ccb1deb662c6f8c036651088e2e8d6 Mon Sep 17 00:00:00 2001
      2 From: Stijn Tintel <stijn@linux-ipv6.be>
      3 Date: Fri, 17 Feb 2017 05:42:25 +0100
      4 Subject: [PATCH] unix: fix compilation against musl libc (#1127)
      5 
      6 POSIX.1-2001 requires sys/select.h for select() and friends.
      7 Compile-tested on glibc and musl, runtime tested on musl.
      8 
      9 Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
     10 ---
     11  cpp/src/platform/unix/SerialControllerImpl.cpp | 1 +
     12  1 file changed, 1 insertion(+)
     13 
     14 diff --git a/cpp/src/platform/unix/SerialControllerImpl.cpp b/cpp/src/platform/unix/SerialControllerImpl.cpp
     15 index d95f848..b52b74f 100644
     16 --- a/cpp/src/platform/unix/SerialControllerImpl.cpp
     17 +++ b/cpp/src/platform/unix/SerialControllerImpl.cpp
     18 @@ -25,6 +25,7 @@
     19  //	along with OpenZWave.  If not, see <http://www.gnu.org/licenses/>.
     20  //
     21  //-----------------------------------------------------------------------------
     22 +#include <sys/select.h>
     23  #include <unistd.h>
     24  #include <pthread.h>
     25  #include "Defs.h"
     26 -- 
     27 2.10.2
     28