CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/external/serialport/extconf.rb
Views: 11701
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