Initial push
[termux-packages] / packages / apt / debsrcrecords.patch
diff --git a/packages/apt/debsrcrecords.patch b/packages/apt/debsrcrecords.patch
new file mode 100644 (file)
index 0000000..bf34220
--- /dev/null
@@ -0,0 +1,18 @@
+diff -u -r ../apt-0.9.16.1/apt-pkg/deb/debsrcrecords.cc ./apt-pkg/deb/debsrcrecords.cc
+--- ../apt-0.9.16.1/apt-pkg/deb/debsrcrecords.cc       2014-03-15 17:23:45.000000000 +0100
++++ ./apt-pkg/deb/debsrcrecords.cc     2014-03-25 01:23:30.652689687 +0100
+@@ -26,6 +26,14 @@
+ #include <string>
+ #include <vector>
+                                                                       /*}}}*/
++#if defined(__ANDROID__)
++static char* strchrnul(char const* s, int c)
++{
++                char* result = strchr(s, c);
++                        return (result == NULL) ? const_cast<char*>(s + strlen(s)) : result;
++}
++#endif
++
+ using std::max;
+ using std::string;