OSDN Git Service

Update for v4.12.3 kernel headers.
authorChristopher Ferris <cferris@google.com>
Fri, 28 Jul 2017 16:10:56 +0000 (09:10 -0700)
committerChristopher Ferris <cferris@google.com>
Fri, 28 Jul 2017 16:10:56 +0000 (09:10 -0700)
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

simpleperf/nonlinux_support/include/asm/byteorder.h

index d118abc..8afb44a 100644 (file)
  * 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