Commit b0549064 authored by Christopher Covington's avatar Christopher Covington Committed by Pavel Emelyanov

Make tpacket_req3 definition conditional

The makefile includes need to be moved for everything to be
defined properly when the configure tests run.

The Ubuntu 12.04 x86_64 GCC and Linaro's 13.08 and newer AArch64
GCC's have the if_packet.h kernel header, but as of 13.12,
the Linaro AArch32 GCC does not.

Change-Id: I363c43fdb81b028f99aac77e15bff9462c87af4b
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 35763e0b
......@@ -19,9 +19,6 @@ export VERSION_SO_MAJOR VERSION_SO_MINOR
#
#MAKEFLAGS := -r -R
include Makefile.inc
include Makefile.config
#
# Common definitions
#
......@@ -114,6 +111,8 @@ export CC MAKE CFLAGS LIBS ARCH DEFINES MAKEFLAGS CRIU-SO
export SRC_DIR SYSCALL-LIB SH RM ARCH_DIR OBJCOPY LDARCH LD
export cflags-y
include Makefile.inc
include Makefile.config
include scripts/Makefile.version
include scripts/Makefile.rules
......
......@@ -22,7 +22,9 @@ extern int packet_receive_one(struct nlmsghdr *h, void *arg);
#ifndef PACKET_FANOUT
#define PACKET_FANOUT 18
#endif
#ifndef TPACKET3_HDRLEN
struct tpacket_req3 {
unsigned int tp_block_size;
unsigned int tp_block_nr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment