renet 0.1.10 → 0.1.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/ext/renet/renet.c +1 -1
  2. data/ext/renet/unix.c +8 -0
  3. metadata +1 -1
data/ext/renet/renet.c CHANGED
@@ -30,7 +30,7 @@ void Init_renet()
30
30
  init_renet_connection();
31
31
  init_renet_server();
32
32
  rb_define_const(mENet, "ENET_VERSION", rb_str_new2("1.3.0"));
33
- rb_define_const(mENet, "RENET_VERSION", rb_str_new2("0.1.10"));
33
+ rb_define_const(mENet, "RENET_VERSION", rb_str_new2("0.1.11"));
34
34
  }
35
35
 
36
36
  VALUE renet_main_initialize(VALUE self)
data/ext/renet/unix.c CHANGED
@@ -30,9 +30,17 @@
30
30
  #include <sys/poll.h>
31
31
  #endif
32
32
 
33
+ #ifdef __APPLE__
33
34
  #ifndef _SOCKLEN_T
34
35
  typedef int socklen_t;
35
36
  #endif
37
+ #endif
38
+
39
+ #ifdef __GNUC__
40
+ #ifndef _SOCKLEN_T_DEFINED
41
+ typedef int socklen_t;
42
+ #endif
43
+ #endif
36
44
 
37
45
  #ifndef MSG_NOSIGNAL
38
46
  #define MSG_NOSIGNAL 0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: renet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: