chiark / gitweb /
vim: Use sensible.vim as system vimrc
[termux-packages] / packages / apt / debsrcrecords.patch
1 diff -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 +{
11 +                char* result = strchr(s, c);
12 +                        return (result == NULL) ? const_cast<char*>(s + strlen(s)) : result;
13 +}
14 +#endif
15 +
16  
17  using std::max;
18  using std::string;