diff options
author | Mark Wielaard <mjw@redhat.com> | 2016-01-13 22:49:02 +0100 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2016-01-18 15:24:27 +0100 |
commit | d460773dd4fdeb98d9271f741e0a54f05ced876d (patch) | |
tree | 8b97b650a61155ef18b43d26ac8d2ea98eb3228c | |
parent | 2d703bf188cf434255854d8e3c077f2fac55d623 (diff) | |
download | android_external_elfutils-d460773dd4fdeb98d9271f741e0a54f05ced876d.tar.gz android_external_elfutils-d460773dd4fdeb98d9271f741e0a54f05ced876d.tar.bz2 android_external_elfutils-d460773dd4fdeb98d9271f741e0a54f05ced876d.zip |
tests: Guard linux specific header includes with ifdef __linux__.
Signed-off-by: Mark Wielaard <mjw@redhat.com>
-rw-r--r-- | tests/ChangeLog | 4 | ||||
-rw-r--r-- | tests/dwfl-proc-attach.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog index 234ae562..34104ffe 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,5 +1,9 @@ 2016-01-13 Mark Wielaard <mjw@redhat.com> + * dwfl-proc-attach.c: Guard linux specific header. + +2016-01-13 Mark Wielaard <mjw@redhat.com> + * system-elf-libelf-test.c: New test. * Makefile.am (TESTS): Add system-elf-libelf-test, if !STANDALONE. (check_PROGRAMS): Likewise. diff --git a/tests/dwfl-proc-attach.c b/tests/dwfl-proc-attach.c index 0ba0be24..e7bb2010 100644 --- a/tests/dwfl-proc-attach.c +++ b/tests/dwfl-proc-attach.c @@ -22,6 +22,7 @@ #include <errno.h> #include <error.h> #include <unistd.h> +#ifdef __linux__ #include <sys/types.h> #include <sys/stat.h> #include <sys/user.h> @@ -29,6 +30,7 @@ #include <string.h> #include ELFUTILS_HEADER(dwfl) #include <pthread.h> +#endif #ifndef __linux__ int |