From a788f354a0cd6de3d714a58ad3e6ae5baf806c3b Mon Sep 17 00:00:00 2001 From: Aliaksey Kandratsenka Date: Sat, 6 Feb 2016 16:01:25 -0800 Subject: [PATCH] include unistd.h for getpid in thread_lister.c This fixes warning produced on arm-linux. --- src/base/thread_lister.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/base/thread_lister.c b/src/base/thread_lister.c index ca1b2de..9dc8d72 100644 --- a/src/base/thread_lister.c +++ b/src/base/thread_lister.c @@ -32,11 +32,17 @@ */ #include "config.h" + +#include "base/thread_lister.h" + #include /* needed for NULL on some powerpc platforms (?!) */ +#include +#include /* for getpid */ + #ifdef HAVE_SYS_PRCTL # include #endif -#include "base/thread_lister.h" + #include "base/linuxthreads.h" /* Include other thread listers here that define THREADS macro * only when they can provide a good implementation.