forked from OnePlusOSS/android_kernel_oneplus_msm8994
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tools: extract linux type definitions to local header
This allows for building the kernel on non-linux platforms. The patch was taken from official OpenWrt trunk releases. Change-Id: Idd70ca8774a0ba83eba8b80d05502155815d1e1d
- Loading branch information
Showing
3 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#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 |