Skip to content

Commit 4e957ea

Browse files
tklauserthom311
authored andcommitted
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 <[email protected]> #151
1 parent 4c95465 commit 4e957ea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/netlink/cli/utils.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include <getopt.h>
2525
#include <sys/types.h>
2626
#include <sys/socket.h>
27+
#include <sys/select.h>
2728

2829
#include <netlink/netlink.h>
2930
#include <netlink/utils.h>

0 commit comments

Comments
 (0)