renet 0.1.10-universal-darwin → 0.1.11-universal-darwin
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/renet/renet.c +1 -1
- data/ext/renet/unix.c +8 -0
- 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.
|
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
|