[PATCH] Don't include sys/uio.h if we don't need it
Ulf Hermann
ulf.hermann@qt.io
Tue Jul 17 11:40:00 GMT 2018
The PID attaching only works on linux.
Change-Id: I00428a711b64cb490429363ef28a867b1347956e
---
libdwfl/ChangeLog | 4 ++++
libdwfl/linux-pid-attach.c | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/libdwfl/ChangeLog b/libdwfl/ChangeLog
index acb4236..15d7511 100644
--- a/libdwfl/ChangeLog
+++ b/libdwfl/ChangeLog
@@ -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.
diff --git a/libdwfl/linux-pid-attach.c b/libdwfl/linux-pid-attach.c
index 1133db6..f19e9b4 100644
--- a/libdwfl/linux-pid-attach.c
+++ b/libdwfl/linux-pid-attach.c
@@ -34,13 +34,13 @@
#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>
--
2.8.1.windows.1
More information about the Elfutils-devel
mailing list