xref: /titanic_50/usr/src/lib/libast/common/features/vfork (revision da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968)
1*da2e3ebdSchinset	prototyped
2*da2e3ebdSchinhdr	vfork
3*da2e3ebdSchinsys	vfork
4*da2e3ebdSchin
5*da2e3ebdSchintst	run{
6*da2e3ebdSchin	if	test "$_hdr_vfork" = 1
7*da2e3ebdSchin	then	echo "#include <vfork.h>"
8*da2e3ebdSchin	elif	test "$_sys_vfork" = 1
9*da2e3ebdSchin	then	echo "#include <sys/vfork.h>"
10*da2e3ebdSchin	else	echo '#include <unistd.h>' > $tmp.c
11*da2e3ebdSchin		$cc -E $tmp.c | grep vfork
12*da2e3ebdSchin	fi
13*da2e3ebdSchin}end
14