--- glib/gatomic.c.orig	Thu Sep 23 17:26:45 2010
+++ glib/gatomic.c	Sun Oct 10 11:50:01 2010
@@ -28,6 +28,7 @@
 #endif
 
 #include "gatomic.h"
+#include "gthread.h"
 #include "gthreadprivate.h"
 
 /**
