Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1diff --git a/extra/coredumper/src/thread_lister.c b/extra/coredumper/src/thread_lister.c
2index 15fedac..181889b 100644
3--- a/extra/coredumper/src/thread_lister.c
4+++ b/extra/coredumper/src/thread_lister.c
5@@ -35,6 +35,7 @@
6
7 #include <stdio.h> /* needed for NULL on some powerpc platforms (?!) */
8 #include <sys/prctl.h>
9+#include <unistd.h>
10
11 #include "linuxthreads.h"
12 /* Include other thread listers here that define THREADS macro