[uClibc]compiling pth-1.4.0 under uclibc
Andrew Ip
aip at cwlinux.com
Fri Aug 24 07:40:40 UTC 2001
Hi,
While compiling pth's test statically, there was an compilation error about
undefine symbol sigaltstack. I am able to fix it with the following patch, but
all tests failed. Since I'm neither libc nor pth expert, please advise if the
patch is correct and how to fix this problem. Thanks.
-Andrew
-------------- next part --------------
diff -Nur uClibc/libc/sysdeps/linux/common/syscalls.c uClibc.sigaltstack/libc/sysdeps/linux/common/syscalls.c
--- uClibc/libc/sysdeps/linux/common/syscalls.c Mon Aug 6 20:46:11 2001
+++ uClibc.sigaltstack/libc/sysdeps/linux/common/syscalls.c Fri Aug 24 15:27:44 2001
@@ -1205,6 +1205,19 @@
#endif
//#define __NR_sigaltstack 186
+#ifdef L_sigaltstack
+#include <signal.h>
+# ifdef __NR_sigaltstack
+ _syscall2(int, sigaltstack, const stack_t*, uss, stack_t*, uoss);
+# else
+ int sigaltstack(const stack_t* uss, stack_t* uoss)
+ {
+ __set_errno(ENOSYS);
+ return -1;
+ }
+# endif
+#endif
+
//#define __NR_sendfile 187
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20010824/65a763a0/attachment.pgp
More information about the uClibc
mailing list