]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
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 234ae56239bd0375bca8d78cc07f5f05f6cf04d3..34104ffe1f8d5e3ac30493ef9e02285de3e91b63 100644 (file)
@@ -1,3 +1,7 @@
+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.
index 0ba0be24d7a5c42e306d5d0d2dc7dc7cb9f89ef4..e7bb2010e6bdeae78d873d7791cfbefb5e7726e9 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