diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2017-09-07 09:20:58 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2017-09-07 19:37:41 (GMT) |
commit | 4e957ea615456c5f076707f56c422af2b70f0188 (patch) | |
tree | d48948667f68d4d72aaf440588e3c2c59d9c8437 | |
parent | 4c95465987db1ecceea000e9aebd0f83e4bffe42 (diff) | |
download | libnl-4e957ea615456c5f076707f56c422af2b70f0188.zip libnl-4e957ea615456c5f076707f56c422af2b70f0188.tar.gz libnl-4e957ea615456c5f076707f56c422af2b70f0188.tar.bz2 |
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
-rw-r--r-- | include/netlink/cli/utils.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/netlink/cli/utils.h b/include/netlink/cli/utils.h index a76fce2..7d69543 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> |