]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Don't include sys/uio.h if we don't need it
authorUlf Hermann <ulf.hermann@qt.io>
Tue, 17 Jul 2018 11:40:26 +0000 (13:40 +0200)
committerMark Wielaard <mark@klomp.org>
Tue, 17 Jul 2018 17:43:56 +0000 (19:43 +0200)
The PID attaching only works on linux.

libdwfl/ChangeLog
libdwfl/linux-pid-attach.c

index acb4236a3bb4091973809128a6c8c69cdee3eea0..15d75114a0096d1e9a8d962d3665a992b47d8e71 100644 (file)
@@ -1,3 +1,7 @@
+2018-07-17  Ulf Hermann  <ulf.hermann@qt.io>
+
+       * linux-pid-attach.c: Include sys/uio.h only on linux.
+
 2018-06-04  Mark Wielaard  <mark@klomp.org>
 
        * libdwflP.h (__libdwfl_addrsym): Remove function declaration.
index 1133db6ce2cb8fdd065b1887719040f4b70687d6..f19e9b49bce14f588e43bc0bf17798feb3330938 100644 (file)
 #include "libdwflP.h"
 #include <sys/types.h>
 #include <sys/stat.h>
-#include <sys/uio.h>
 #include <fcntl.h>
 #include <dirent.h>
 #include <unistd.h>
 
 #ifdef __linux__
 
+#include <sys/uio.h>
 #include <sys/ptrace.h>
 #include <sys/syscall.h>
 #include <sys/wait.h>