]> granicus.if.org Git - libnl/commit
cli: include sys/select.h for select(2)
authorTobias Klauser <tklauser@distanz.ch>
Thu, 7 Sep 2017 09:20:58 +0000 (11:20 +0200)
committerThomas Haller <thaller@redhat.com>
Thu, 7 Sep 2017 19:37:41 +0000 (21:37 +0200)
commit4e957ea615456c5f076707f56c422af2b70f0188
treed48948667f68d4d72aaf440588e3c2c59d9c8437
parent4c95465987db1ecceea000e9aebd0f83e4bffe42
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
include/netlink/cli/utils.h