aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-08-19 20:02:17 -0700
committerElliott Hughes <enh@google.com>2014-08-19 20:02:17 -0700
commit504f8866c4a2a88f13f57ae687bcb15eaa8a4b18 (patch)
tree5d6465220c5ed9a7413f9e4782217dcf153d5e87
parent1d1011a3c5049a7f9eef99d22f3704e4367579cc (diff)
downloadlibcap-ng-504f8866c4a2a88f13f57ae687bcb15eaa8a4b18.tar.gz
libcap-ng can compile out of the box now.
We've added <stdio_ext.h>. Change-Id: I9b634a120b7d957847aad87ab65e03c3f64df19c
-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++;