aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2017-07-17 17:21:38 -0700
committerStephen Hemminger <stephen@networkplumber.org>2017-07-17 17:21:38 -0700
commitb69811c054a55c241ce5628a32a62486eab491e5 (patch)
treef2666197d3057d05144f268650a84bf7c06ac260
parent7b421143d1427e17380ff5bf93ef8fc718428c83 (diff)
downloadbridge-utils-b69811c054a55c241ce5628a32a62486eab491e5.tar.gz
libbridge: add missing sys/time.h include in header
Required to define the 'struct timeval' type: In file included from external/bridge-utils/brctl/brctl.c:25: external/bridge-utils/brctl/../libbridge/libbridge.h:44:17: error: field has incomplete type 'struct timeval' struct timeval max_age; ^ Signed-off-by: Aleksander Morgado <aleksander@aleksander.es>
-rw-r--r--libbridge/libbridge.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libbridge/libbridge.h b/libbridge/libbridge.h
index ff047f9..c038b92 100644
--- a/libbridge/libbridge.h
+++ b/libbridge/libbridge.h
@@ -21,7 +21,9 @@
#include <sys/types.h>
#include <sys/socket.h>
+#include <sys/time.h>
#include <netinet/in.h>
+
#include <linux/if.h>
#include <linux/if_bridge.h>