blob: beabf63ca3ab04102f6db16d752b7f83a3c5892c [file] [log] [blame]
Brad Bishopd7bf8c12018-02-25 22:55:05 -05001From a5b945cb3c62a18dcd7047f62707c09076c4e48b Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 12 Jul 2017 15:35:51 -0700
4Subject: [PATCH 2/2] teamd: Re-adjust include header order
5
6So it gets the library definition before kernel definition
7
8usr/include/ne
9tinet/if_ether.h:101:8: error: redefinition of 'struct ethhdr'
10 struct ethhdr {
11 ^~~~~~
12
13Signed-off-by: Khem Raj <raj.khem@gmail.com>
14---
15 teamd/teamd_runner_lacp.c | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/teamd/teamd_runner_lacp.c b/teamd/teamd_runner_lacp.c
19index 9c77fae..8800854 100644
20--- a/teamd/teamd_runner_lacp.c
21+++ b/teamd/teamd_runner_lacp.c
22@@ -23,6 +23,7 @@
23 #include <unistd.h>
24 #include <limits.h>
25 #include <sys/ioctl.h>
26+#include <net/ethernet.h>
27 #include <linux/if_ether.h>
28 #include <sys/socket.h>
29 #include <linux/netdevice.h>
30@@ -30,7 +31,6 @@
31 #include <errno.h>
32 #include <team.h>
33 #include <private/misc.h>
34-#include <net/ethernet.h>
35
36 #include "teamd.h"
37 #include "teamd_config.h"
38--
392.13.2
40