summaryrefslogtreecommitdiff
path: root/data/dpkg
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2016-08-15 23:44:39 +0000
committerJay Freeman <saurik@saurik.com>2016-08-15 23:44:39 +0000
commit1a9b7840c3da94e65bd7b105e6c510a010a150ae (patch)
treed231c3f5d432f59291f72e36fdc7c5f56efbeb8e /data/dpkg
parent8909e93890de1b72779677b5ab954f7e97b8f34f (diff)
Late commit of workaround for different compiler.
git-svn-id: http://svn.telesphoreo.org/trunk@817 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'data/dpkg')
-rw-r--r--data/dpkg/port.diff5
1 files changed, 3 insertions, 2 deletions
diff --git a/data/dpkg/port.diff b/data/dpkg/port.diff
index ad0809621..236196707 100644
--- a/data/dpkg/port.diff
+++ b/data/dpkg/port.diff
@@ -11,12 +11,13 @@ diff -ru dpkg-1.14.25/lib/Makefile.am dpkg-1.14.25+iPhone/lib/Makefile.am
diff -ru dpkg-1.14.25/lib/tarfn.c dpkg-1.14.25+iPhone/lib/tarfn.c
--- dpkg-1.14.25/lib/tarfn.c 2009-02-01 06:18:59.000000000 +0000
+++ dpkg-1.14.25+iPhone/lib/tarfn.c 2009-04-11 01:11:30.000000000 +0000
-@@ -55,6 +55,13 @@
+@@ -55,6 +55,14 @@
return n;
}
+int strnlen(const char *s, int size) {
-+ for (int i = 0; i != size; ++i)
++ int i;
++ for (i = 0; i != size; ++i)
+ if (s[i] == '\0')
+ return i;
+ return size;