Patchwork [gccgo] Remove use of undefined type Timezone

login
register
mail settings
Submitter Ian Taylor
Date Nov. 10, 2010, 10:40 p.m.
Message ID <mcrhbfovm2w.fsf@google.com>
Download mbox | patch
Permalink /patch/70704/
State New
Headers show

Comments

Ian Taylor - Nov. 10, 2010, 10:40 p.m.
This patch to libgo removes the only use of the undefined type Timezone,
which the compiler has started to notice when building trees.  This type
was only used in an internal declaration in the syscalls package, and
the value is not used, so I just changed it to *byte.  Committed to
gccgo branch.

Ian

Patch

diff -r 24a42c273e9c libgo/syscalls/sysfile_posix.go
--- a/libgo/syscalls/sysfile_posix.go	Wed Nov 10 14:25:16 2010 -0800
+++ b/libgo/syscalls/sysfile_posix.go	Wed Nov 10 14:38:47 2010 -0800
@@ -24,7 +24,7 @@ 
 func libc_rmdir(name *byte) int __asm__ ("rmdir");
 func libc_fcntl(fd int, cmd int, arg int) int __asm__ ("fcntl");
 func libc_mkdir(name *byte, perm Mode_t) int __asm__ ("mkdir");
-func libc_gettimeofday(tv *Timeval, tz *Timezone) int __asm__ ("gettimeofday");
+func libc_gettimeofday(tv *Timeval, tz *byte) int __asm__ ("gettimeofday");
 func libc_select(int, *byte, *byte, *byte, *Timeval) int __asm__ ("select");
 func libc_chdir(name *byte) int __asm__ ("chdir");
 func libc_fchdir(int) int __asm__ ("fchdir");