diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-04-01 22:53:54 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-04-01 22:53:54 +0000 |
commit | 4ac7fcaac05916bfbf58851691f9e19e288181aa (patch) | |
tree | 7a2eaa2a2e05514cc9e4637814d3b7776ae4ac18 /libgo/syscalls | |
parent | 15a03a11ceae0d0423ce6d762842f89a0c8feadd (diff) | |
download | gcc-4ac7fcaac05916bfbf58851691f9e19e288181aa.zip gcc-4ac7fcaac05916bfbf58851691f9e19e288181aa.tar.gz gcc-4ac7fcaac05916bfbf58851691f9e19e288181aa.tar.bz2 |
libgo: Try to guess the right type for select bits in mksysinfo.
From-SVN: r171858
Diffstat (limited to 'libgo/syscalls')
-rw-r--r-- | libgo/syscalls/sysfile_posix.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/syscalls/sysfile_posix.go b/libgo/syscalls/sysfile_posix.go index d070057..a16ba4a 100644 --- a/libgo/syscalls/sysfile_posix.go +++ b/libgo/syscalls/sysfile_posix.go @@ -181,10 +181,10 @@ func Gettimeofday(tv *Timeval) (errno int) { return; } -const nfdbits = unsafe.Sizeof(_C_long) * 8 +const nfdbits = unsafe.Sizeof(fds_bits_type) * 8 type FdSet_t struct { - Fds_bits [(FD_SETSIZE + nfdbits - 1) / nfdbits]_C_long + Fds_bits [(FD_SETSIZE + nfdbits - 1) / nfdbits]fds_bits_type } func FDSet(fd int, set *FdSet_t) { |