The PID attaching only works on linux.
+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.
#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>