kqueue: workaround lack of RSTRUCT* macros on Rubinius
commitda07e5676040d543c33720efae19f2a70e766a39
authorEric Wong <normalperson@yhbt.net>
Mon, 29 Apr 2013 20:55:10 +0000 (29 20:55 +0000)
committerEric Wong <normalperson@yhbt.net>
Mon, 29 Apr 2013 21:01:02 +0000 (29 21:01 +0000)
treebd710cbd2327b8853938d911f25ad78da9d3d02e
parenta974d3acb4cf59696c71f82004e2b42d1c1903d9
kqueue: workaround lack of RSTRUCT* macros on Rubinius

Rubinius will not support RSTRUCT* macros, so converting the
structs to arrays is the least intrusive way to go about our
code.

ref: https://github.com/rubinius/rubinius/issues/494
ext/sleepy_penguin/kqueue.c
test/test_kqueue_io.rb