summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/compat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/compat.c b/common/compat.c
index f0e31eb..5a9702d 100644
--- a/common/compat.c
+++ b/common/compat.c
@@ -912,6 +912,7 @@ fdwalk (int (* cb) (void *data, int fd),
struct rlimit rl;
#endif
+#ifdef __linux__
dir = opendir ("/proc/self/fd");
if (dir != NULL) {
while ((de = readdir (dir)) != NULL) {
@@ -934,6 +935,7 @@ fdwalk (int (* cb) (void *data, int fd),
closedir (dir);
return res;
}
+#endif
/* No /proc, brute force */
#ifdef HAVE_SYS_RESOURCE_H