]> git.ipfire.org Git - thirdparty/libnl.git/commitdiff
Include <sys/select.h> before calling select(2) master
authorFredrik Fornwall <fredrik@fornwall.net>
Thu, 9 Feb 2017 08:09:42 +0000 (09:09 +0100)
committerThomas Graf <tgraf@suug.ch>
Thu, 9 Feb 2017 15:14:14 +0000 (07:14 -0800)
This is needed for Android where select(2) is not defined as a side
effect of including any of the other headers, and should be the
correct portable thing to do to not rely on implementation details.

src/nf-log.c
src/nf-monitor.c
src/nf-queue.c
src/nl-monitor.c

index 1e2c1e48ac1a65b176361d90bb23090f8d89960a..62d3f6d39266174fa8459b90541907d23cd00217 100644 (file)
@@ -11,6 +11,7 @@
  * Copyright (c) 2007 Secure Computing Corporation
  */
 
+#include <sys/select.h>
 #include <netlink/cli/utils.h>
 #include <netlink/cli/link.h>
 #include <linux/netfilter/nfnetlink_log.h>
index fe99af4846beb532d7e6fd3d06f4963cb527ebbe..e9aa4eced2b3ef711c298217d6160a1a5d0f0795 100644 (file)
@@ -11,6 +11,7 @@
  * Copyright (c) 2007 Secure Computing Corporation
  */
 
+#include <sys/select.h>
 #include <netlink/cli/utils.h>
 #include <netlink/netfilter/nfnl.h>
 
index b043c80e4b3d2294a9b3cd44f802299014c6ba07..b69e1884d315a8790a85767031aec09d8ef53da5 100644 (file)
@@ -11,6 +11,7 @@
  */
 
 
+#include <sys/select.h>
 #include <netlink/cli/utils.h>
 #include <netlink/cli/link.h>
 #include <netinet/in.h>
index 16ecac00e04c3b5dfc825338d48bc2638fbe4de1..000758038ad3379df33238cfa03d15ce05717af2 100644 (file)
@@ -9,6 +9,7 @@
  * Copyright (c) 2003-2009 Thomas Graf <tgraf@suug.ch>
  */
 
+#include <sys/select.h>
 #include <netlink/cli/utils.h>
 #include <netlink/cli/link.h>