diff options
Diffstat (limited to 'src/apk_database.h')
-rw-r--r-- | src/apk_database.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/apk_database.h b/src/apk_database.h index b28a77b..e0c04ed 100644 --- a/src/apk_database.h +++ b/src/apk_database.h @@ -18,6 +18,16 @@ #include "apk_package.h" #include "apk_io.h" +/* default architecture for APK packages. */ +#if defined(__x86_64__) +#define APK_DEFAULT_ARCH "x86_64" +#elif defined(__i386__) +#define APK_DEFAULT_ARCH "x86" +#else +#warning APK_DEFAULT_ARCH is not set for this architecture +#define APK_DEFAULT_ARCH "noarch" +#endif + #define APK_MAX_REPOS 32 #define APK_CACHE_CSUM_BYTES 4 |