diff --git a/type_map.go b/type_map.go
index <HASH>..<HASH> 100644
--- a/type_map.go
+++ b/type_map.go
@@ -1,3 +1,5 @@
+// +build !gccgo
+
 package reflect2
 
 import (
#6, #9: TypeByName/TypeByPackageName use a hack that only works with gcgo and doesn't work with gccgo. Disabling compilation of type_map.go for gccgo.