summaryrefslogtreecommitdiff
path: root/mcon/U/d_sigsetjmp.U
diff options
context:
space:
mode:
Diffstat (limited to 'mcon/U/d_sigsetjmp.U')
-rw-r--r--mcon/U/d_sigsetjmp.U27
1 files changed, 13 insertions, 14 deletions
diff --git a/mcon/U/d_sigsetjmp.U b/mcon/U/d_sigsetjmp.U
index cd16aa2..9bbc0c6 100644
--- a/mcon/U/d_sigsetjmp.U
+++ b/mcon/U/d_sigsetjmp.U
@@ -1,12 +1,12 @@
-?RCS: $Id: d_sigsetjmp.U 1 2006-08-24 12:32:52Z rmanfredi $
+?RCS: $Id: d_sigsetjmp.U 167 2013-05-08 17:58:00Z rmanfredi $
?RCS:
?RCS: Copyright (c) 1996, Andy Dougherty
?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
?RCS:
-?RCS: You may redistribute only under the terms of the Artistic Licence,
+?RCS: You may redistribute only under the terms of the Artistic License,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
-?RCS: that same Artistic Licence; a copy of which may be found at the root
+?RCS: that same Artistic License; a copy of which may be found at the root
?RCS: of the source tree for dist 4.0.
?RCS:
?RCS: You may distribute under the terms of either the GNU General Public
@@ -58,8 +58,6 @@
?F:!set
?LINT:set d_sigsetjmp
: see if sigsetjmp exists
-?X: We can't check for these symbols with Inlibc because sigsetjmp
-?X: is (sometimes? always?) a macro under GCC
echo " "
case "$d_sigsetjmp" in
'')
@@ -67,35 +65,36 @@ case "$d_sigsetjmp" in
#include <setjmp.h>
sigjmp_buf env;
int set = 1;
-int main()
+int main(void)
{
if (sigsetjmp(env,1))
- exit(set);
+ return set;
set = 0;
siglongjmp(env, 1);
- exit(1);
+ return 1;
}
EOP
- if $cc $ccflags $ldflags -o set set.c $libs > /dev/null 2>&1 ; then
+ if $cc $ccflags $ldflags -o set set.c $libs >/dev/null 2>&1; then
if ./set >/dev/null 2>&1; then
- echo "POSIX sigsetjmp found." >&4
+ echo "POSIX sigsetjmp() found." >&4
val="$define"
else
$cat >&4 <<EOM
-Uh-Oh! You have POSIX sigsetjmp and siglongjmp, but they do not work properly!!
+Uh-Oh!
+You have POSIX sigsetjmp() and siglongjmp(), but they do not work properly!!
I'll ignore them.
EOM
val="$undef"
fi
else
- echo "sigsetjmp not found." >&4
+ echo "sigsetjmp() not found." >&4
val="$undef"
fi
;;
*) val="$d_sigsetjmp"
case "$d_sigsetjmp" in
- $define) echo "POSIX sigsetjmp found." >&4;;
- $undef) echo "sigsetjmp not found." >&4;;
+ $define) echo "POSIX sigsetjmp() found." >&4;;
+ $undef) echo "sigsetjmp() not found." >&4;;
esac
;;
esac