[uClibc] simple powerpc syscall fixes

Andrew May acmay at acmay.homeip.net
Fri Jan 30 01:00:58 UTC 2004


Here are some simple fixes for things that broke for PPC with
the recent syscall cleanup. I am not sure they are correct but
they seem pretty trivial.
-------------- next part --------------
diff -ur uClibc.orig/libc/sysdeps/linux/common/modify_ldt.c uClibc/libc/sysdeps/linux/common/modify_ldt.c
--- uClibc.orig/libc/sysdeps/linux/common/modify_ldt.c	2004-01-21 15:27:40.000000000 -0800
+++ uClibc/libc/sysdeps/linux/common/modify_ldt.c	2004-01-29 16:54:38.000000000 -0800
@@ -7,7 +7,11 @@
  * GNU Library General Public License (LGPL) version 2 or later.
  */
 
+#ifdef __NR_modify_ldt
+#ifdef L_modify_ldt
 #include "syscalls.h"
 _syscall3(int, modify_ldt, int, func, void *, ptr, unsigned long, bytecount);
 
 weak_alias(modify_ldt, __modify_ldt);
+#endif
+#endif
diff -ur uClibc.orig/libc/sysdeps/linux/powerpc/Makefile uClibc/libc/sysdeps/linux/powerpc/Makefile
--- uClibc.orig/libc/sysdeps/linux/powerpc/Makefile	2003-12-03 15:12:13.000000000 -0800
+++ uClibc/libc/sysdeps/linux/powerpc/Makefile	2004-01-29 16:33:05.000000000 -0800
@@ -32,7 +32,7 @@
 endif
 SOBJS=$(patsubst %.S,%.o, $(SSRC))
 
-CSRC=_mmap.c vfork.c __syscall_error.c pread_write.c ioctl.c
+CSRC=mmap.c vfork.c __syscall_error.c pread_write.c ioctl.c
 COBJS=$(patsubst %.c,%.o, $(CSRC))
 
 OBJS=$(SOBJS) $(COBJS)
diff -ur uClibc.orig/libc/sysdeps/linux/powerpc/ioctl.c uClibc/libc/sysdeps/linux/powerpc/ioctl.c
--- uClibc.orig/libc/sysdeps/linux/powerpc/ioctl.c	2004-01-21 15:27:44.000000000 -0800
+++ uClibc/libc/sysdeps/linux/powerpc/ioctl.c	2004-01-29 16:51:24.000000000 -0800
@@ -19,6 +19,7 @@
 #include <stdarg.h>
 #include <termios.h>
 #include <unistd.h>
+#include <sys/syscall.h>
 #include <sys/ioctl.h>
 
 /* The user-visible size of struct termios has changed.  Catch ioctl calls


More information about the uClibc mailing list