drop remaining 1.8 and fragile autopush code paths
[kgio.git] / ext / kgio / sock_for_fd.h
blobcfec302cca199b3f02db9b0981a9105e6193252b
1 #ifndef SOCK_FOR_FD_H
2 #define SOCK_FOR_FD_H
3 #include <ruby.h>
5 static ID id_for_fd;
6 static VALUE sock_for_fd(VALUE klass, int fd)
8 return rb_funcall(klass, id_for_fd, 1, INT2NUM(fd));
11 static void init_sock_for_fd(void)
13 id_for_fd = rb_intern("for_fd");
15 #endif /* SOCK_FOR_FD_H */