summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2008-06-18 07:22:36 +0000
committerJay Freeman <saurik@saurik.com>2008-06-18 07:22:36 +0000
commita71abd89b6ed24369d468fe3f811b4c003207d95 (patch)
tree4f54df55635660c58960907f9c9ed7c71e7a6237 /data
parent2893b4289e0e13e22470908a0326515b9c1ec333 (diff)
Ported p7zip to use dyld from NS* for module linking.
git-svn-id: http://svn.telesphoreo.org/trunk@327 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'data')
-rw-r--r--data/p7zip/dyld.diff48
1 files changed, 48 insertions, 0 deletions
diff --git a/data/p7zip/dyld.diff b/data/p7zip/dyld.diff
new file mode 100644
index 000000000..ef84de803
--- /dev/null
+++ b/data/p7zip/dyld.diff
@@ -0,0 +1,48 @@
+diff -ru p7zip_4.57/CPP/Windows/DLL.cpp p7zip_4.57+iPhone/CPP/Windows/DLL.cpp
+--- p7zip_4.57/CPP/Windows/DLL.cpp 2007-11-14 21:07:44.000000000 +0000
++++ p7zip_4.57+iPhone/CPP/Windows/DLL.cpp 2008-06-18 02:49:22.000000000 +0000
+@@ -2,7 +2,7 @@
+
+ #include "StdAfx.h"
+
+-#ifdef __APPLE_CC__
++#if 0//__APPLE_CC__
+ #include <mach-o/dyld.h>
+ #elif ENV_BEOS
+ #include <kernel/image.h>
+@@ -39,7 +39,7 @@
+ if (_module == 0)
+ return true;
+
+-#ifdef __APPLE_CC__
++#if 0//__APPLE_CC__
+ int ret = NSUnLinkModule ((NSModule)_module, 0);
+ #elif ENV_BEOS
+ int ret = unload_add_on((image_id)_module);
+@@ -57,7 +57,7 @@
+ void *ptr = 0;
+ TRACEN((printf("local_GetProcAddress(%p,%s)\n",(void *)module,lpProcName)))
+ if (module) {
+-#ifdef __APPLE_CC__
++#if 0//__APPLE_CC__
+ char name[MAX_PATHNAME_LEN];
+ snprintf(name,sizeof(name),"_%s",lpProcName);
+ name[sizeof(name)-1] = 0;
+@@ -117,7 +117,7 @@
+ strcpy(name+len-4,".so");
+ }
+
+-#ifdef __APPLE_CC__
++#if 0//__APPLE_CC__
+ NSObjectFileImage image;
+ NSObjectFileImageReturnCode nsret;
+
+@@ -171,7 +171,7 @@
+ if (fctTest) fctTest();
+
+ } else {
+-#ifdef __APPLE_CC__
++#if 0//__APPLE_CC__
+ NSLinkEditErrors c;
+ int num_err;
+ const char *file,*err;