[osicat-devel] Patch to fix osicat on OpenBSD

Nikodemus Siivola nikodemus at random-state.net
Fri Mar 30 14:22:18 UTC 2012


On 8 January 2012 11:55, Timo Myyrä <timo.myyra at gmail.com> wrote:

> Here's diff to make osicat work on OpenBSD.
>
> OpenBSD doesn't define blksize_t and blkcnt_t so define them as
> 'long'. Not sure if this is correct but seems to work.
> Neither does OpenBSD have the timer functions so omit them on OpenBSD.
> The tests need to be tweaked for OpenBSD too, its similar to darwin in
> this. Testing with other BSD's would be welcome to see if it its
> needed there as well.
>
> The funcall-getpw function seems to handle return values incorrectly.
> As result it would cause exception on OpenBSD with incorrect entries
> and not nil value as expected. The fix below works on OpenBSD but
> could use some testing on other platforms as well.

Thank you. Pushed ... we'll see if something breaks.

(Apropos: attachments generated with "git format-patch -1" are quicker
to apply.)

Cheers,

 -- nikodemus




More information about the osicat-devel mailing list