summaryrefslogtreecommitdiff
path: root/mcon/U/d_sigsetjmp.U
diff options
context:
space:
mode:
authorcbiere <cbiere@2592e710-e01b-42a5-8df0-11608a6cc53d>2011-01-18 04:35:08 +0000
committercbiere <cbiere@2592e710-e01b-42a5-8df0-11608a6cc53d>2011-01-18 04:35:08 +0000
commit2982d579211a4d80bba3faa974d1eabb5a811705 (patch)
tree454ee164650b024d17726cb4be0dc12cb4f961f2 /mcon/U/d_sigsetjmp.U
parent4f7eb90be70e59bbee6123be2414f94fb9c5ca22 (diff)
Fixed many units to make compiling with GCC flag -Werror possible.
Replaced exit() with return in main() due to missing #include <stdlib.h>. Added "(void) variable;" to silence warning about unused variable. Fixed Csym for GCC again (see FIXME tag). Added FIXME regarding VAL_EAGAIN. Added #define _GNU_SOURCE for pread() and pwrite() to get prototypes on GLIBC. Removed blunt cc output redirections because you can't fix what you can't see. git-svn-id: svn://svn.code.sf.net/p/dist/code/trunk/dist@79 2592e710-e01b-42a5-8df0-11608a6cc53d
Diffstat (limited to 'mcon/U/d_sigsetjmp.U')
-rw-r--r--mcon/U/d_sigsetjmp.U8
1 files changed, 4 insertions, 4 deletions
diff --git a/mcon/U/d_sigsetjmp.U b/mcon/U/d_sigsetjmp.U
index 8a1d474..8ecf709 100644
--- a/mcon/U/d_sigsetjmp.U
+++ b/mcon/U/d_sigsetjmp.U
@@ -65,16 +65,16 @@ 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; then
if ./set >/dev/null 2>&1; then
echo "POSIX sigsetjmp found." >&4
val="$define"