summaryrefslogtreecommitdiff
path: root/data/ipkg/endian.diff
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2009-06-18 21:13:38 +0000
committerJay Freeman <saurik@saurik.com>2009-06-18 21:13:38 +0000
commit5ed718ec79aa5d126d81cd9453bc00ca20208451 (patch)
tree72ec0a822ca8dbbe077731c348952ec5918d6d5e /data/ipkg/endian.diff
parent2b8a416faa0ffd207f16ff6295d97c26b4bdd597 (diff)
Added ipkg (for WebOS compatibility).
git-svn-id: http://svn.telesphoreo.org/trunk@621 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'data/ipkg/endian.diff')
-rw-r--r--data/ipkg/endian.diff23
1 files changed, 23 insertions, 0 deletions
diff --git a/data/ipkg/endian.diff b/data/ipkg/endian.diff
new file mode 100644
index 000000000..9b4c688c4
--- /dev/null
+++ b/data/ipkg/endian.diff
@@ -0,0 +1,23 @@
+diff -ru ipkg-0.99.163/md5.c ipkg-0.99.163+iPhone/md5.c
+--- ipkg-0.99.163/md5.c 2006-02-06 08:13:04.000000000 +0000
++++ ipkg-0.99.163+iPhone/md5.c 2009-06-11 23:33:26.000000000 +0000
+@@ -50,7 +50,6 @@
+ #include <getopt.h>
+ #include <stdlib.h>
+ #include <string.h>
+-#include <endian.h>
+ #include <sys/types.h>
+ #if defined HAVE_LIMITS_H
+ # include <limits.h>
+@@ -127,11 +126,7 @@
+ //----------------------------------------------------------------------------
+
+ /* Handle endian-ness */
+-#if __BYTE_ORDER == __LITTLE_ENDIAN
+ #define SWAP(n) (n)
+-#else
+- #define SWAP(n) ((n << 24) | ((n&65280)<<8) | ((n&16711680)>>8) | (n>>24))
+-#endif
+
+
+