librhash: Update from 1.3.5 to 1.3.6
[termux-packages] / packages / apt / debsrcrecords.patch
CommitLineData
59f0d218
FF
1diff -u -r ../apt-0.9.16.1/apt-pkg/deb/debsrcrecords.cc ./apt-pkg/deb/debsrcrecords.cc
2--- ../apt-0.9.16.1/apt-pkg/deb/debsrcrecords.cc 2014-03-15 17:23:45.000000000 +0100
3+++ ./apt-pkg/deb/debsrcrecords.cc 2014-03-25 01:23:30.652689687 +0100
4@@ -26,6 +26,14 @@
5 #include <string>
6 #include <vector>
7 /*}}}*/
8+#if defined(__ANDROID__)
9+static char* strchrnul(char const* s, int c)
10+{
8f6db0b4
FF
11+ char const* result = strchr(s, c);
12+ return const_cast<char*>((result == NULL) ? (s + strlen(s)) : result);
59f0d218
FF
13+}
14+#endif
15+
16
17 using std::max;
18 using std::string;