tests: Guard linux specific header includes with ifdef __linux__.
authorMark Wielaard <mjw@redhat.com>
Wed, 13 Jan 2016 21:49:02 +0000 (22:49 +0100)
committerMark Wielaard <mjw@redhat.com>
Mon, 18 Jan 2016 14:24:27 +0000 (15:24 +0100)
Signed-off-by: Mark Wielaard <mjw@redhat.com>
tests/ChangeLog
tests/dwfl-proc-attach.c

index 234ae56..34104ff 100644 (file)
@@ -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.
index 0ba0be2..e7bb201 100644 (file)
@@ -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