diff options
author | Craig A. Berry <craigberry@mac.com> | 2003-03-17 19:10:10 -0600 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2003-03-18 21:22:03 +0000 |
commit | d2d53deba7dbe551bfa81a6ebef39167b1be9a61 (patch) | |
tree | 38e492f6653ef7b1e624d8e88e4244d187ecc267 /configure.com | |
parent | 4492b098a8517fe1f73eca32139095ceb008ac02 (diff) | |
download | perl-d2d53deba7dbe551bfa81a6ebef39167b1be9a61.tar.gz |
poll() help for VMS
From: "Craig A. Berry" <craigberry@mac.com>
Message-ID: <3E76C652.30205@mac.com>
p4raw-id: //depot/perl@19023
Diffstat (limited to 'configure.com')
-rw-r--r-- | configure.com | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/configure.com b/configure.com index fae7a07c1b..196c5b0cc0 100644 --- a/configure.com +++ b/configure.com @@ -4050,6 +4050,29 @@ $ tmp = "mkdtemp" $ GOSUB inlibc $ d_mkdtemp = tmp $! +$! Check for poll +$! +$ if i_poll .eqs. "define" +$ then +$ OS +$ WS "#if defined(__DECC) || defined(__DECCXX)" +$ WS "#include <stdlib.h>" +$ WS "#endif" +$ WS "#include <poll.h>" +$ WS "int main()" +$ WS "{" +$ WS "struct pollfd pfd;" +$ WS "int count=poll(&pfd,1,0);" +$ WS "exit(0);" +$ WS "}" +$ CS +$ tmp = "poll" +$ GOSUB inlibc +$ d_poll = tmp +$ else +$ d_poll = "undef" +$ endif +$! $! Check for setvbuf $! $ OS @@ -5356,7 +5379,7 @@ $ WC "d_pause='define'" $ WC "d_perl_otherlibdirs='undef'" $ WC "d_phostname='" + d_phostname + "'" $ WC "d_pipe='define'" -$ WC "d_poll='undef'" +$ WC "d_poll='" + d_poll + "'" $ WC "d_procselfexe='undef'" $ WC "d_pthread_atfork='undef'" $ WC "d_pthread_yield='" + d_pthread_yield + "'" |