Sha256: b8c1a7006caaf62616a4fda2f5682b221f7f3cd23d7a3cc9e49840370b6f52fe

Contents?: true

Size: 1.63 KB

Versions: 1

Compression:

Stored size: 1.63 KB

Contents

########################################################
# Use the mkmf.rb file that I provide, so I can use the
# have_enum_member method
########################################################
require "mkmf"
require "ftools"

File.copy("lib/proc/wait3.c",".")

have_header("wait.h")

# wait3 is mandatory.
unless have_func("wait3")
   STDERR.puts "wait3() function not found"
   exit
end

# wait4 and waitid are optional (HPUX, et al)
have_func("wait4")
have_func("waitid")
have_func("sigsend")
have_func("getrusage")

have_struct_member("struct siginfo", "si_trapno", "signal.h")
have_struct_member("struct siginfo", "si_pc", "signal.h")
have_struct_member("struct siginfo", "si_sysarg", "signal.h")
have_struct_member("struct siginfo", "si_mstate", "signal.h")
have_struct_member("struct siginfo", "si_faddr", "signal.h")
have_struct_member("struct siginfo", "si_syscall", "signal.h")
have_struct_member("struct siginfo", "si_nsysarg", "signal.h")
have_struct_member("struct siginfo", "si_fault", "signal.h")
have_struct_member("struct siginfo", "si_tstamp", "signal.h")

begin
   have_const("P_CID", "signal.h")
   have_const("P_GID", "signal.h")
   have_const("P_MYID", "signal.h")
   have_const("P_SID", "signal.h")
   have_const("P_UID", "signal.h")

   # These are only supported by Solaris 8 and later afaik
   have_const("P_PROJID", "signal.h")
   have_const("P_TASKID", "signal.h")
rescue NoMethodError
   STDERR.puts
   STDERR.puts "STOP!"
   STDERR.puts
   STDERR.puts "Please run the patch.rb program and try again"
   STDERR.puts "See the README file for more details"
   STDERR.puts "Makefile NOT created"
   exit
end

create_makefile("proc/wait3")

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
proc-wait3-1.5.1 extconf.rb