diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index 3c7ee13f1954a46301479656e8af8c148cef208f..989738f576344ce9d6aaacecd9ef591a17602b40 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -1,3 +1,7 @@
+2006-09-14  Andreas Schwab  <schwab@suse.de>
+
+	* posix-threads.cc: Include "posix.h".
+
 2006-09-13  Geoffrey Keating  <geoffk@apple.com>
 
 	* posix.cc (_Jv_platform_nanotime): Return nanoseconds, not
diff --git a/libjava/posix-threads.cc b/libjava/posix-threads.cc
index 41937db6c52aa0e259f40238201841c928b54cae..125275b97cacad9d72c84bda4e46e208a34b301b 100644
--- a/libjava/posix-threads.cc
+++ b/libjava/posix-threads.cc
@@ -13,6 +13,8 @@ details.  */
 
 #include <config.h>
 
+#include "posix.h"
+
 // If we're using the Boehm GC, then we need to override some of the
 // thread primitives.  This is fairly gross.
 #ifdef HAVE_BOEHM_GC