aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libcap-ng-0.7/src/cap-ng.c4
-rw-r--r--libcap-ng-0.7/utils/pscap.c4
2 files changed, 0 insertions, 8 deletions
diff --git a/libcap-ng-0.7/src/cap-ng.c b/libcap-ng-0.7/src/cap-ng.c
index a7124f1..cf99b3e 100644
--- a/libcap-ng-0.7/src/cap-ng.c
+++ b/libcap-ng-0.7/src/cap-ng.c
@@ -25,9 +25,7 @@
#include <string.h>
#include <stdarg.h>
#include <stdio.h>
-#if !defined(ANDROID)
#include <stdio_ext.h>
-#endif
#include <stdlib.h>
#include <sys/prctl.h>
#include <grp.h>
@@ -244,9 +242,7 @@ static int get_bounding_set(void)
f = fopen(buf, "re");
if (f == NULL)
return -1;
-#if !defined(ANDROID)
__fsetlocking(f, FSETLOCKING_BYCALLER);
-#endif
while (fgets(buf, sizeof(buf), f)) {
if (strncmp(buf, "CapB", 4))
continue;
diff --git a/libcap-ng-0.7/utils/pscap.c b/libcap-ng-0.7/utils/pscap.c
index 5907513..1496584 100644
--- a/libcap-ng-0.7/utils/pscap.c
+++ b/libcap-ng-0.7/utils/pscap.c
@@ -23,9 +23,7 @@
#include "config.h"
#include <stdio.h>
-#if !defined(ANDROID)
#include <stdio_ext.h>
-#endif
#include <unistd.h>
#include <stdlib.h>
#include <errno.h>
@@ -128,9 +126,7 @@ int main(int argc, char *argv[])
euid = 0;
else {
line = 0;
-#if !defined(ANDROID)
__fsetlocking(f, FSETLOCKING_BYCALLER);
-#endif
while (fgets(buf, sizeof(buf), f)) {
if (line == 0) {
line++;