summaryrefslogtreecommitdiff
path: root/src/apk_database.h
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2011-07-16 04:31:27 -0500
committerWilliam Pitcock <nenolod@dereferenced.org>2011-07-16 04:31:27 -0500
commit384eada8aff3e9aca3cb1c289e194aee85cbd6c2 (patch)
treee98ede9cffa3eca5ddd4811a18c9229f7213df27 /src/apk_database.h
parent86a67d4415155e609ed8d64fff13d8e0cab663ba (diff)
downloadapk-tools-384eada8aff3e9aca3cb1c289e194aee85cbd6c2.tar.gz
apk-tools-384eada8aff3e9aca3cb1c289e194aee85cbd6c2.tar.bz2
apk-tools-384eada8aff3e9aca3cb1c289e194aee85cbd6c2.tar.xz
apk-tools-384eada8aff3e9aca3cb1c289e194aee85cbd6c2.zip
apk_database: add APK_DEFAULT_ARCH for ppc, ppc64 and arm ports
Diffstat (limited to 'src/apk_database.h')
-rw-r--r--src/apk_database.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/apk_database.h b/src/apk_database.h
index e0c04ed..2e8fb89 100644
--- a/src/apk_database.h
+++ b/src/apk_database.h
@@ -23,6 +23,12 @@
#define APK_DEFAULT_ARCH "x86_64"
#elif defined(__i386__)
#define APK_DEFAULT_ARCH "x86"
+#elif defined(__powerpc__) && !defined(__powerpc64__)
+#define APK_DEFAULT_ARCH "ppc"
+#elif defined(__powerpc64__)
+#define APK_DEFAULT_ARCH "ppc64"
+#elif defined(__arm__)
+#define APK_DEFAULT_ARCH "arm"
#else
#warning APK_DEFAULT_ARCH is not set for this architecture
#define APK_DEFAULT_ARCH "noarch"