diff options
Diffstat (limited to 'dev-db/sqlite/files/sqlite-3.45.1-ppc64-ptr.patch')
-rw-r--r-- | dev-db/sqlite/files/sqlite-3.45.1-ppc64-ptr.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/dev-db/sqlite/files/sqlite-3.45.1-ppc64-ptr.patch b/dev-db/sqlite/files/sqlite-3.45.1-ppc64-ptr.patch new file mode 100644 index 000000000000..f67917225d3f --- /dev/null +++ b/dev-db/sqlite/files/sqlite-3.45.1-ppc64-ptr.patch @@ -0,0 +1,24 @@ +https://sqlite.org/forum/forumpost/c3f1b5213a +--- a/config.guess 2024-01-31 ++++ b/config.guess 2024-01-31 +@@ -1425,7 +1425,7 @@ + esac + fi + # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc +- if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \ ++ if (echo '#ifdef __ppc__'; echo IS_PPC; echo '#endif') | \ + (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_PPC >/dev/null + then + +--- a/src/tclsqlite.c 2024-01-31 ++++ b/src/tclsqlite.c 2024-01-31 +@@ -65,7 +65,7 @@ + # define SQLITE_PTRSIZE __SIZEOF_POINTER__ + # elif defined(i386) || defined(__i386__) || defined(_M_IX86) || \ + defined(_M_ARM) || defined(__arm__) || defined(__x86) || \ +- (defined(__APPLE__) && defined(__POWERPC__)) || \ ++ (defined(__APPLE__) && defined(__ppc__)) || \ + (defined(__TOS_AIX__) && !defined(__64BIT__)) + # define SQLITE_PTRSIZE 4 + # else |