summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2009-02-07 14:48:32 -0800
committerRob Pike <r@golang.org>2009-02-07 14:48:32 -0800
commite60cb47ebd9e1835af07367589ca2c380ec01382 (patch)
treea5b952acd4e1ddadd97d99fe8eb7e90373a9385b /src
parentb9d6c367f388a364c40c843d3c1fb6669ec3be35 (diff)
downloadgolang-e60cb47ebd9e1835af07367589ca2c380ec01382.tar.gz
update sysimport.c for unsafe.Offset and Sizeof
R=ken DELTA=2 (2 added, 0 deleted, 0 changed) OCL=24643 CL=24643
Diffstat (limited to 'src')
-rw-r--r--src/cmd/gc/sysimport.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/gc/sysimport.c b/src/cmd/gc/sysimport.c
index da12b6361..4d682d675 100644
--- a/src/cmd/gc/sysimport.c
+++ b/src/cmd/gc/sysimport.c
@@ -65,5 +65,7 @@ char *sysimport =
char *unsafeimport =
"package unsafe\n"
"type unsafe.Pointer *any\n"
+ "func unsafe.Offsetof (? any) (? int)\n"
+ "func unsafe.Sizeof (? any) (? int)\n"
"\n"
"$$\n";