diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-02-08 10:41:51 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-02-08 13:28:33 -0800 |
commit | 5c480aee3067006b5da6d45b7de41d8401b70848 (patch) | |
tree | eebb5907063b3ff442fc97abee8d6336db2636b5 /ext/kgio/extconf.rb | |
parent | 47653194bf6ad53b9f5fca1b266c30855df5ebbd (diff) | |
download | kgio-5c480aee3067006b5da6d45b7de41d8401b70848.tar.gz |
It's a nice alternative to IO.select for higher-numbered file descriptors, especially sparse ones. Our interface also generates less garbage than IO.select does.
Diffstat (limited to 'ext/kgio/extconf.rb')
-rw-r--r-- | ext/kgio/extconf.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/kgio/extconf.rb b/ext/kgio/extconf.rb index 3758e92..86e660a 100644 --- a/ext/kgio/extconf.rb +++ b/ext/kgio/extconf.rb @@ -2,6 +2,7 @@ require 'mkmf' $CPPFLAGS << ' -D_GNU_SOURCE' $CPPFLAGS << ' -DPOSIX_C_SOURCE=1' +have_func("poll", "poll.h") have_func("getaddrinfo", %w(sys/types.h sys/socket.h netdb.h)) or abort "getaddrinfo required" have_func("getnameinfo", %w(sys/socket.h netdb.h)) or |