Skip to content
Snippets Groups Projects
Commit 992233f1 authored by Felix Fietkau's avatar Felix Fietkau Committed by Kenneth Johansson
Browse files

linux-3.6: fix portability of some includes files in tools/ used on the host


lede-commit: 6040b1d29ab1f047c5e49b748abcb6a3196add28
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent 8f02eb6e
Branches
Tags
No related merge requests found
#ifndef _TOOLS_BE_BYTESHIFT_H #ifndef _TOOLS_BE_BYTESHIFT_H
#define _TOOLS_BE_BYTESHIFT_H #define _TOOLS_BE_BYTESHIFT_H
#ifndef __linux__
#include "linux_types.h"
#endif
#include <stdint.h> #include <stdint.h>
static inline uint16_t __get_unaligned_be16(const uint8_t *p) static inline uint16_t __get_unaligned_be16(const uint8_t *p)
......
#ifndef _TOOLS_LE_BYTESHIFT_H #ifndef _TOOLS_LE_BYTESHIFT_H
#define _TOOLS_LE_BYTESHIFT_H #define _TOOLS_LE_BYTESHIFT_H
#ifndef __linux__
#include "linux_types.h"
#endif
#include <stdint.h> #include <stdint.h>
static inline uint16_t __get_unaligned_le16(const uint8_t *p) static inline uint16_t __get_unaligned_le16(const uint8_t *p)
......
#ifndef __LINUX_TYPES_H
#define __LINUX_TYPES_H
#include <stdint.h>
typedef uint8_t __u8;
typedef uint8_t __be8;
typedef uint8_t __le8;
typedef uint16_t __u16;
typedef uint16_t __be16;
typedef uint16_t __le16;
typedef uint32_t __u32;
typedef uint32_t __be32;
typedef uint32_t __le32;
typedef uint64_t __u64;
typedef uint64_t __be64;
typedef uint64_t __le64;
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment