2015-06-13 01:03:31 +02:00
|
|
|
diff -u -r ../apt-0.9.16.1/apt-pkg/contrib/cmndline.cc ./apt-pkg/contrib/cmndline.cc
|
|
|
|
--- ../apt-0.9.16.1/apt-pkg/contrib/cmndline.cc 2014-03-15 17:23:45.000000000 +0100
|
|
|
|
+++ ./apt-pkg/contrib/cmndline.cc 2014-03-25 01:10:30.764711007 +0100
|
|
|
|
@@ -27,6 +27,14 @@
|
|
|
|
/*}}}*/
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
+#if defined(__ANDROID__)
|
|
|
|
+static char* strchrnul(char const* s, int c)
|
|
|
|
+{
|
2017-07-01 00:32:45 +02:00
|
|
|
+ char const* result = strchr(s, c);
|
|
|
|
+ return const_cast<char*>((result == NULL) ? (s + strlen(s)) : result);
|
2015-06-13 01:03:31 +02:00
|
|
|
+}
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
// CommandLine::CommandLine - Constructor /*{{{*/
|
|
|
|
// ---------------------------------------------------------------------
|
|
|
|
/* */
|