termux-packages/packages/procps/sysctl.c.patch

33 lines
613 B
Diff
Raw Permalink Normal View History

2018-05-19 03:50:15 +02:00
diff -u -r ../procps-ng-3.3.14/sysctl.c ./sysctl.c
--- ../procps-ng-3.3.14/sysctl.c 2018-03-12 01:59:52.530805100 +0000
+++ ./sysctl.c 2018-05-19 00:31:52.228321968 +0000
2015-06-13 01:03:31 +02:00
@@ -29,7 +29,9 @@
#include <dirent.h>
#include <errno.h>
#include <getopt.h>
-#include <glob.h>
+#ifndef __ANDROID__
+# include <glob.h>
+#endif
#include <libgen.h>
#include <limits.h>
#include <regex.h>
2018-05-19 03:50:15 +02:00
@@ -507,6 +509,9 @@
2015-06-13 01:03:31 +02:00
*/
static int Preload(const char *restrict const filename)
{
+#ifdef __ANDROID__
+ return -1;
+#else
FILE *fp;
2018-05-19 03:50:15 +02:00
char *t;
int n = 0;
@@ -596,6 +601,7 @@
2015-06-13 01:03:31 +02:00
}
2018-05-19 03:50:15 +02:00
out:
2015-06-13 01:03:31 +02:00
return rc;
+#endif
}
struct pair {