Add an intptr type to runtime; needed in FreeBSD
In thread.c, we need to cast to whatever the native
size of intptr is on the system, but we only have
uintptr available. They're the same size, but can't
do signed casts without this one :).
R=rsc
CC=golang-dev
https://golang.org/cl/156073
diff --git a/src/pkg/runtime/runtime.h b/src/pkg/runtime/runtime.h
index 83b47b7..df1c45a 100644
--- a/src/pkg/runtime/runtime.h
+++ b/src/pkg/runtime/runtime.h
@@ -18,8 +18,10 @@
#ifdef _64BIT
typedef uint64 uintptr;
+typedef int64 intptr;
#else
typedef uint32 uintptr;
+typedef int32 intptr;
#endif
/*