Changeset 390

Show
Ignore:
Timestamp:
06/15/07 18:53:01 (2 years ago)
Author:
blackhedd
Message:

tweaked the epoll detector

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • version_0/ext/extconf.rb

    r389 r390  
    104104          File.open("hasEpollTest.c", "w") {|f| 
    105105                  f.puts "#include <sys/epoll.h>" 
    106                   f.puts "void X() { epoll_create(1024); }" 
     106                  f.puts "int main() { epoll_create(1024); return 0;}" 
    107107          } 
    108           e = `gcc hasEpollTest.c -o hasEpollTest 2> /dev/null` 
     108          (e = system( "gcc hasEpollTest.c -o hasEpollTest " )) and (e = $?.to_i) 
    109109          `rm -f hasEpollTest.c hasEpollTest` 
    110110          flags << '-DHAVE_EPOLL' if e == 0