diff options
author | Christopher Ferris <cferris@google.com> | 2017-07-28 09:10:56 -0700 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2017-07-28 09:10:56 -0700 |
commit | a6feef53f6342d616515885903ba066cded599ef (patch) | |
tree | dd02341dc8d26b74a2df9694822b2cf4c6ce7818 | |
parent | 880d4e8574fefa3978b32eaa4d7d38abb187e7b5 (diff) | |
download | extras-a6feef53f6342d616515885903ba066cded599ef.tar.gz |
Update for v4.12.3 kernel headers.
Modify the host side linux byteorder.h to set the defines for little
endian. The new kernel headers require the defines, or there will be
compile errors.
Test: Ran all host side unit tests.
Change-Id: I05f0ea0695a56525af3cd808f2ae9a8d6b5c49db
-rw-r--r-- | simpleperf/nonlinux_support/include/asm/byteorder.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/simpleperf/nonlinux_support/include/asm/byteorder.h b/simpleperf/nonlinux_support/include/asm/byteorder.h index d118abcf..8afb44ae 100644 --- a/simpleperf/nonlinux_support/include/asm/byteorder.h +++ b/simpleperf/nonlinux_support/include/asm/byteorder.h @@ -13,3 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +// All supported devices are little endian, set these so that you can properly +// include uapi headers. +#ifndef __LITTLE_ENDIAN +#define __LITTLE_ENDIAN 1234 +#endif +#ifndef __LITTLE_ENDIAN_BITFIELD +#define __LITTLE_ENDIAN_BITFIELD +#endif |