Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rapid7
GitHub Repository: rapid7/metasploit-framework
Path: blob/master/external/serialport/extconf.rb
24660 views
1
require 'mkmf'
2
3
printf("checking for OS... ")
4
STDOUT.flush
5
os = /-([a-z]+)/.match(RUBY_PLATFORM)[1]
6
puts(os)
7
$CFLAGS += " -D#{os}"
8
9
if !(os == 'mswin' or os == 'bccwin')
10
exit(1) if not have_header("termios.h") or not have_header("unistd.h")
11
end
12
13
create_makefile("serialport")
14
15