2014-02-20 14:18:41 +01:00
|
|
|
--- ./lib/rpmrc.c.orig 2014-02-05 13:04:02.000000000 +0000
|
|
|
|
+++ ./lib/rpmrc.c 2014-02-20 12:37:28.209816551 +0000
|
|
|
|
@@ -83,10 +83,12 @@ struct rpmOption {
|
2013-02-20 18:32:28 +01:00
|
|
|
int localize;
|
|
|
|
};
|
|
|
|
|
|
|
|
+#if defined(__linux__) && defined(__powerpc__)
|
|
|
|
static struct rpmat_s {
|
|
|
|
const char *platform;
|
|
|
|
uint64_t hwcap;
|
|
|
|
} rpmat;
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
typedef struct defaultEntry_s {
|
|
|
|
char * name;
|
2014-02-20 14:18:41 +01:00
|
|
|
@@ -914,7 +916,7 @@ static int is_geode(void)
|
2013-02-20 18:32:28 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
-#if defined(__linux__)
|
|
|
|
+#if defined(__linux__) && defined(__powerpc__)
|
|
|
|
/**
|
2014-02-20 14:18:41 +01:00
|
|
|
* Populate rpmat structure with auxv values
|
2013-02-20 18:32:28 +01:00
|
|
|
*/
|
2014-02-20 14:18:41 +01:00
|
|
|
@@ -971,7 +973,7 @@ static void defaultMachine(const char **
|
2013-02-20 18:32:28 +01:00
|
|
|
canonEntry canon;
|
|
|
|
int rc;
|
|
|
|
|
|
|
|
-#if defined(__linux__)
|
|
|
|
+#if defined(__linux__) && defined(__powerpc__)
|
|
|
|
/* Populate rpmat struct with hw info */
|
2014-02-20 14:18:41 +01:00
|
|
|
read_auxv();
|
2013-02-20 18:32:28 +01:00
|
|
|
#endif
|