]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
parser: fix compilation breakage
authorPatrick McHardy <kaber@trash.net>
Thu, 16 Jan 2014 17:11:12 +0000 (17:11 +0000)
committerPatrick McHardy <kaber@trash.net>
Thu, 16 Jan 2014 17:11:12 +0000 (17:11 +0000)
Commit 0bd59cf4da (parser: fix parsing of ethernet protocol types) broke
compilation:

src/parser.y:26:22: fatal error: if_ether.h: No such file or directory

Should be netinet/if_ether.h.

Signed-off-by: Patrick McHardy <kaber@trash.net>
src/parser.y

index 23662f789de1a282a22a5fdd21ec695316347b39..d4a79291bb3ffb4c0cfa81d667768e036401351e 100644 (file)
@@ -14,6 +14,7 @@
 #include <stdio.h>
 #include <inttypes.h>
 #include <netinet/ip.h>
+#include <netinet/if_ether.h>
 #include <linux/netfilter.h>
 #include <linux/netfilter/nf_tables.h>
 #include <linux/netfilter/nf_conntrack_tuple_common.h>
@@ -23,7 +24,6 @@
 #include <expression.h>
 #include <utils.h>
 #include <parser.h>
-#include <if_ether.h>
 #include <erec.h>
 
 #include "parser.h"