summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux
diff options
context:
space:
mode:
authorDavid McCullough <davidm@snapgear.com>2002-08-09 13:03:00 +0000
committerDavid McCullough <davidm@snapgear.com>2002-08-09 13:03:00 +0000
commitbea67a752df6f8e1dfce75592fb7c371e5c8a212 (patch)
treec9b547baafaae100ab2c34ef6930ba48a1a5a736 /libc/sysdeps/linux
parent54e4a312a7ac8609604d922950d29f618d1cb04c (diff)
Fix a number of compile time warnings so that uClibc will build with -Werror using
a 3.0.4 version of the sh-linux-gcc compiler.
Diffstat (limited to 'libc/sysdeps/linux')
-rw-r--r--libc/sysdeps/linux/common/syscalls.c1
-rw-r--r--libc/sysdeps/linux/sh/longjmp.c4
2 files changed, 4 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/syscalls.c b/libc/sysdeps/linux/common/syscalls.c
index 4acd0401c..ff7c38478 100644
--- a/libc/sysdeps/linux/common/syscalls.c
+++ b/libc/sysdeps/linux/common/syscalls.c
@@ -35,6 +35,7 @@
#include <errno.h>
#include <sys/types.h>
#include <sys/syscall.h>
+#include <endian.h>
//#define __NR_exit 1
diff --git a/libc/sysdeps/linux/sh/longjmp.c b/libc/sysdeps/linux/sh/longjmp.c
index a17147d5f..dd4f684ad 100644
--- a/libc/sysdeps/linux/sh/longjmp.c
+++ b/libc/sysdeps/linux/sh/longjmp.c
@@ -24,6 +24,8 @@
#include <setjmp.h>
#include <signal.h>
+extern int __longjmp(char *env, int val);
+extern int __sigprocmask(int how, const sigset_t *set, sigset_t *oldset);
/* Set the signal mask to the one specified in ENV, and jump
to the position specified in ENV, causing the setjmp
@@ -36,7 +38,7 @@ void __libc_siglongjmp (sigjmp_buf env, int val)
(sigset_t *) NULL);
/* Call the machine-dependent function to restore machine state. */
- __longjmp (env[0].__jmpbuf, val ?: 1);
+ __longjmp ((char *) env[0].__jmpbuf, val ?: 1);
}
__asm__(".weak longjmp; longjmp = __libc_siglongjmp");