--- gdb-7.8.orig/gdb/common/linux-ptrace.c	2014-07-29 14:37:42.000000000 +0200
+++ gdb-7.8/gdb/common/linux-ptrace.c	2014-09-05 00:52:41.353409084 +0200
@@ -23,6 +23,7 @@
 #include <string.h>
 #endif
 
+#include <sched.h>
 #include "linux-ptrace.h"
 #include "linux-procfs.h"
 #include "nat/linux-waitpid.h"
