Tobias Ulmer wrote:

> vim compiles but is unusable on NetBSD/sparc64 (extreme lag, high cpu).
> 
> Martin Husemann figured this is due to the wrong select() being called,
> and provided a workaround here:
> http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=53296
> 
> It works, but looking at this mess I couldn't resist to make it a
> little more universal and remove some of those hacks from os_unix.c.
> 
> Your choice :)
> 
> 
> (src/auto/configure can be regenerated)
> --8<--
> Replace select() redeclaration with less fragile method.
> 
> Vim should build on systems where the select() prototype takes either
> int * or fd_set * as argument. Previously this was achieved by
> providing its own prototype.
> 
> This approach fails on NetBSD, who do syscall versioning by symbol
> renaming in their system headers (the real name is __select50).
> 
> In particular, on sparc64 the wrong select version is called and
> random garbage is passed to the timeval argument, making vim unusable.
> 
> Instead of adding yet another set of workarounds for NetBSD, use the
> prototype provided by system headers and cast the fd_set * arguments to
> a suitable type.

Thanks, I didn't know about this autoconf macro.

-- 
You have the right to remain silent. Anything you say will be
misquoted, then used against you.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui