From 33150de2d77ffb645da1a043933b12ddc0143cea Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Tue, 21 Mar 2017 18:59:03 -0700
Subject: [PATCH] include sys/select.h for fd_* definitions

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 utils/ndptool.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/utils/ndptool.c b/utils/ndptool.c
index 1d96f4c..0fd4c4d 100644
--- a/utils/ndptool.c
+++ b/utils/ndptool.c
@@ -23,6 +23,7 @@
 #include <string.h>
 #include <signal.h>
 #include <getopt.h>
+#include <sys/select.h>
 #include <net/if.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
-- 
2.12.0


From 94e9a082d76414f82794b0c9817d0c24e3868275 Mon Sep 17 00:00:00 2001
From: Kylie McClain <somasis@exherbo.org>
Date: Sat, 21 May 2016 21:24:36 -0400
Subject: [PATCH] ndptool: Fix compilation on musl libc

FD_ZERO, fd_set, etc are defined within sys/select.h on musl.

Signed-off-by: Kylie McClain <somasis@exherbo.org>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
---
 utils/ndptool.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/utils/ndptool.c b/utils/ndptool.c
index 1d96f4c..96479fa 100644
--- a/utils/ndptool.c
+++ b/utils/ndptool.c
@@ -28,6 +28,7 @@
 #include <arpa/inet.h>
 #include <errno.h>
 #include <ndp.h>
+#include <sys/select.h>
 
 enum verbosity_level {
 	VERB1,

Update patch with upstream version.
libndp: Update patch with upstream version.

Signed-off-by: Gianfranco Costamagna <7d65a1a301a498b7f4c0f3f95edb991bc7b8c127@abinsula.com>
Signed-off-by: Martin Jansa <516df3ff67e1fa5d153800b15fb204c0a1a389dc@gmail.com>
