1 --- a/tools/include/tools/be_byteshift.h
2 +++ b/tools/include/tools/be_byteshift.h
4 #ifndef _TOOLS_BE_BYTESHIFT_H
5 #define _TOOLS_BE_BYTESHIFT_H
8 #include <linux/types.h>
10 +#include "linux_types.h"
13 static inline __u16 __get_unaligned_be16(const __u8 *p)
15 --- a/tools/include/tools/le_byteshift.h
16 +++ b/tools/include/tools/le_byteshift.h
18 #ifndef _TOOLS_LE_BYTESHIFT_H
19 #define _TOOLS_LE_BYTESHIFT_H
22 #include <linux/types.h>
24 +#include "linux_types.h"
27 static inline __u16 __get_unaligned_le16(const __u8 *p)
30 +++ b/tools/include/tools/linux_types.h
32 +#ifndef __LINUX_TYPES_H
33 +#define __LINUX_TYPES_H
37 +typedef uint8_t __u8;
38 +typedef uint8_t __be8;
39 +typedef uint8_t __le8;
41 +typedef uint16_t __u16;
42 +typedef uint16_t __be16;
43 +typedef uint16_t __le16;
45 +typedef uint32_t __u32;
46 +typedef uint32_t __be32;
47 +typedef uint32_t __le32;
49 +typedef uint64_t __u64;
50 +typedef uint64_t __be64;
51 +typedef uint64_t __le64;