develooper Front page | perl.perl5.porters | Postings from May 2007

[PATCH] Configure: O_NONBLOCK test uses fork() and pipe()

Thread Next
From:
Jarkko Hietaniemi
Date:
May 31, 2007 18:32
Subject:
[PATCH] Configure: O_NONBLOCK test uses fork() and pipe()
Message ID:
200706010131.l511V3kv417484@kosh.hut.fi
--- Configure.dist	2007-06-01 04:23:38.000000000 +0300
+++ Configure	2007-06-01 04:27:28.000000000 +0300
@@ -12220,6 +12220,8 @@
 echo "Let's see what value errno gets from read() on a $o_nonblock file..." >&4
 case "$eagain" in
 '')
+	case "$d_fork:$d_pipe" in
+	define:define)
 	$cat head.c > try.c
 	$cat >>try.c <<EOCP
 #include <errno.h>
@@ -12352,6 +12354,12 @@
 		echo "I can't compile the test program--assuming errno EAGAIN will do."
 		eagain=EAGAIN
 	fi
+	;;
+	*)	echo "Can't figure out how to test this--assuming errno EAGAIN will do."
+		eagain=EAGAIN
+		val="$define"
+		;;
+	esac
 	set d_eofnblk
 	eval $setvar
 	;;

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About