Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Fix compilation under MacRuby #243

merged 1 commit into from

4 participants


The build errors on MacRuby because of an invalid conversion from 'const void *' to 'void *'. This pull request fixes it.


+1 on this

@sodabrew sodabrew referenced this pull request from a commit in sodabrew/eventmachine
@ibc ibc Fix compilation under MacRuby: eventmachine#243 1c944fc
@sodabrew sodabrew added this to the v1.0.6 milestone
@tmm1 tmm1 merged commit 4555264 into eventmachine:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 28, 2011
  1. @bklang

    Fix compilation with MacRuby

    bklang committed
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  ext/rubymain.cpp
2  ext/rubymain.cpp
@@ -592,7 +592,7 @@ static VALUE t_set_sock_opt (VALUE self, VALUE signature, VALUE lev, VALUE optna
int fd = evma_get_file_descriptor (NUM2ULONG (signature));
int level = NUM2INT(lev), option = NUM2INT(optname);
int i;
- void *v;
+ const void *v;
socklen_t len;
switch (TYPE(optval)) {
Something went wrong with that request. Please try again.