summaryrefslogtreecommitdiff
path: root/src/apk_defines.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/apk_defines.h')
-rw-r--r--src/apk_defines.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/apk_defines.h b/src/apk_defines.h
index 00a6f9e..7f8d3b6 100644
--- a/src/apk_defines.h
+++ b/src/apk_defines.h
@@ -12,6 +12,7 @@
#ifndef APK_DEFINES_H
#define APK_DEFINES_H
+#include <endian.h>
#include <string.h>
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
@@ -75,6 +76,8 @@ extern char **apk_argv;
#define APK_DEFAULT_ARCH "ppc"
#elif defined(__powerpc64__)
#define APK_DEFAULT_ARCH "ppc64"
+#elif defined(__arm__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
+#define APK_DEFAULT_ARCH "armel"
#elif defined(__arm__)
#define APK_DEFAULT_ARCH "arm"
#else