libandroid-glob: issetugid() not in 64-bit libc
[termux-packages] / packages / procps / sysctl.c.patch
CommitLineData
59f0d218
FF
1diff -u -r ../procps-ng-3.3.10/sysctl.c ./sysctl.c
2--- ../procps-ng-3.3.10/sysctl.c 2014-09-23 07:40:36.000000000 -0400
3+++ ./sysctl.c 2015-03-21 16:22:00.057039606 -0400
4@@ -29,7 +29,9 @@
5 #include <dirent.h>
6 #include <errno.h>
7 #include <getopt.h>
8-#include <glob.h>
9+#ifndef __ANDROID__
10+# include <glob.h>
11+#endif
12 #include <libgen.h>
13 #include <limits.h>
14 #include <regex.h>
15@@ -491,6 +493,9 @@
16 */
17 static int Preload(const char *restrict const filename)
18 {
19+#ifdef __ANDROID__
20+ return -1;
21+#else
22 char oneline[LINELEN];
23 char buffer[LINELEN];
24 FILE *fp;
25@@ -567,6 +572,7 @@
26 fclose(fp);
27 }
28 return rc;
29+#endif
30 }
31
32 struct pair {