include unistd.h for getpid in thread_lister.c

This fixes warning produced on arm-linux.
This commit is contained in:
Aliaksey Kandratsenka 2016-02-06 16:01:25 -08:00
parent 644a6bdbdb
commit a788f354a0
1 changed files with 7 additions and 1 deletions

View File

@ -32,11 +32,17 @@
*/
#include "config.h"
#include "base/thread_lister.h"
#include <stdio.h> /* needed for NULL on some powerpc platforms (?!) */
#include <sys/types.h>
#include <unistd.h> /* for getpid */
#ifdef HAVE_SYS_PRCTL
# include <sys/prctl.h>
#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.