This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
metaconfig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0b7e67
)
Fix [perl #114812] Configure not finding isblank().
author
Andy Dougherty
<doughera@lafayete.edu>
Mon, 10 Sep 2012 13:24:23 +0000
(09:24 -0400)
committer
Andy Dougherty
<doughera@lafayete.edu>
Mon, 10 Sep 2012 13:24:23 +0000
(09:24 -0400)
Configure would not find isblank() when run with g++ because the probe
used exit() without including <stdlib.h>. The simplest fix is to have
the probe use return instead.
U/perl/d_isblank.U
patch
|
blob
|
blame
|
history
diff --git
a/U/perl/d_isblank.U
b/U/perl/d_isblank.U
index
753a56e
..
01d2aed
100644
(file)
--- a/
U/perl/d_isblank.U
+++ b/
U/perl/d_isblank.U
@@
-30,9
+30,9
@@
$cat >isblank.c <<'EOCP'
int main() {
int c = ' ';
if (isblank(c))
-
exit(0)
;
+
return 0
;
else
-
exit(1)
;
+
return 1
;
}
EOCP
if $cc $ccflags $ldflags -o isblank isblank.c $libs >/dev/null 2>&1 ; then