Use the strptime() probe in POSIX.xs & tests
authorÆvar Arnfjörð Bjarmason <avar@cpan.org>
Sun, 12 Feb 2012 14:35:50 +0000 (14:35 +0000)
committerÆvar Arnfjörð Bjarmason <avar@cpan.org>
Sun, 12 Feb 2012 14:39:25 +0000 (14:39 +0000)
commit05a9a07a5bad262994c7980ced7fffdd93aa2867
treee063508f1ffda92e72e8ec2ef47c1111bedad5b6
parent8852e312c3c616ab731ccbe7da54fb04eb8c3d30
Use the strptime() probe in POSIX.xs & tests

My merge of strptime() in v5.15.7-367-g0e58213 would break systems
that didn't have strptime in the C library, use the probe H.Merijn
Brand kindly provided in v5.15.7-370-g8852e31 to deal with that.

Now we'll just croak on systems without strptime(3) if the
POSIX::strptime() function is called, in the same way we croak for
other unimplemented functions in there:

    $ ./perl -Ilib -MPOSIX=strptime -e 'strptime(qw/foo bar/)'
    POSIX::strptime not implemented on this architecture at -e line 1.

This patch is best viewed with the -w option to show or git log, I've
re-indented some code in time.t for the new SKIP block I've added.
ext/POSIX/POSIX.xs
ext/POSIX/t/time.t