summaryrefslogtreecommitdiff
path: root/include/netlink
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2017-09-07 11:20:58 +0200
committerThomas Haller <thaller@redhat.com>2017-09-07 21:37:41 +0200
commit4e957ea615456c5f076707f56c422af2b70f0188 (patch)
treed48948667f68d4d72aaf440588e3c2c59d9c8437 /include/netlink
parent4c95465987db1ecceea000e9aebd0f83e4bffe42 (diff)
downloadlibnl-4e957ea615456c5f076707f56c422af2b70f0188.tar.gz
cli: include sys/select.h for select(2)
Some of the cli tools use select(2) and its man page states: /* According to POSIX.1-2001, POSIX.1-2008 */ #include <sys/select.h> Do so and explicitly #include <sys/select.h> in <netlink/cli/utils.h> instead of relying of getting select(2) via implicit includes. This is also needed to make libnl compile for Android. Based on a previous patch by Fredrik Fornwall. Signed-off-by: Tobias Klauser <tklauser@distanz.ch> https://github.com/thom311/libnl/pull/151
Diffstat (limited to 'include/netlink')
-rw-r--r--include/netlink/cli/utils.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/netlink/cli/utils.h b/include/netlink/cli/utils.h
index a76fce28..7d69543a 100644
--- a/include/netlink/cli/utils.h
+++ b/include/netlink/cli/utils.h
@@ -24,6 +24,7 @@
#include <getopt.h>
#include <sys/types.h>
#include <sys/socket.h>
+#include <sys/select.h>
#include <netlink/netlink.h>
#include <netlink/utils.h>