ext/extconf.rb in proc-wait3-1.9.1 vs ext/extconf.rb in proc-wait3-1.9.2
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
########################################################
# Use the mkmf.rb file that I provide, so I can use the
# have_enum_member method
########################################################
require 'mkmf'
@@ -10,11 +12,11 @@
have_header('sys/resource.h') # apt install libbsd-dev
have_header('sys/wait.h')
# wait3 is mandatory.
unless have_func('wait3')
- STDERR.puts 'wait3() function not found'
+ warn 'wait3() function not found'
exit
end
# Yay, Linux
have_func('str2sig')
@@ -65,7 +67,10 @@
have_const('P_PROJID', 'signal.h')
have_const('P_TASKID', 'signal.h')
# RUSAGE_THREAD is Linux-specific
have_const('RUSAGE_THREAD', 'sys/resource.h')
+
+# BSD
+have_const('P_JAILID', 'sys/wait.h')
create_makefile('proc/wait3', 'proc')