eal: fix x32 build
authorOlivier Matz <olivier.matz@6wind.com>
Thu, 30 Jul 2015 20:26:48 +0000 (22:26 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sun, 2 Aug 2015 22:38:26 +0000 (00:38 +0200)
commit0ea73979aabdbf2ab26fc354479035485873a4e3
tree4e276fd78ac2a08f8ddc9ca2f4c29c9968be487f
parentd43777cb150867ebc9db4ca06977d52e854e3869
eal: fix x32 build

Compiling for dpdk x86_x32 gives the following error:

In file included from /usr/include/sys/sysctl.h:63:0,
                 from lib/librte_eal/common/eal_common_timer.c:39:
/usr/include/bits/sysctl.h:19:3: error: #error "sysctl system call is unsupported in x32 kernel"
 # error "sysctl system call is unsupported in x32 kernel"
   ^

Including sysctl.h was added by mistake when merging bsd and linux EAL
timer code. It can be safely removed in this file, fixing the
compilation.

Fixes: 040cf8a411 ("eal: deduplicate timer functions")

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_eal/common/eal_common_timer.c