projects
/
perl.git
/ commitdiff
free
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
8a7eb8f
)
Fix [perl #114812] Configure not finding isblank().
author
Andy Dougherty <doughera@lafayette.edu>
Mon, 10 Sep 2012 12:35:16 +0000 (08:35 -0400)
committer
Andy Dougherty <doughera@lafayette.edu>
Mon, 10 Sep 2012 12:35:16 +0000 (08:35 -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.
Configure
patch
|
blob
|
blame
|
history
diff --git
a/Configure
b/Configure
index
7fa1804
..
a1bc835
100755
(executable)
--- a/
Configure
+++ b/
Configure
@@
-15068,9
+15068,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