diff options
Diffstat (limited to 'tests/dwfl-bug-fd-leak.c')
| -rw-r--r-- | tests/dwfl-bug-fd-leak.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/dwfl-bug-fd-leak.c b/tests/dwfl-bug-fd-leak.c index bcbfb290..689cdd79 100644 --- a/tests/dwfl-bug-fd-leak.c +++ b/tests/dwfl-bug-fd-leak.c @@ -27,6 +27,15 @@ #include <error.h> #include <unistd.h> #include <dwarf.h> + +#ifndef __linux__ +int +main (void) +{ + return 77; /* dwfl_linux_proc_report is linux specific. */ +} +#else + #include <sys/resource.h> #include ELFUTILS_HEADER(dwfl) @@ -104,3 +113,4 @@ main (void) return 0; } +#endif |
