| 1 | diff -u -r ../apt-0.9.16.1/apt-pkg/contrib/cmndline.cc ./apt-pkg/contrib/cmndline.cc |
| 2 | --- ../apt-0.9.16.1/apt-pkg/contrib/cmndline.cc 2014-03-15 17:23:45.000000000 +0100 |
| 3 | +++ ./apt-pkg/contrib/cmndline.cc 2014-03-25 01:10:30.764711007 +0100 |
| 4 | @@ -27,6 +27,14 @@ |
| 5 | /*}}}*/ |
| 6 | using namespace std; |
| 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 | // CommandLine::CommandLine - Constructor /*{{{*/ |
| 17 | // --------------------------------------------------------------------- |
| 18 | /* */ |