From e53f70e1e1fc250c060d3432844fb222e32754b1 Mon Sep 17 00:00:00 2001 From: Manuel Novoa III Date: Thu, 28 Jun 2001 01:59:07 +0000 Subject: Added a script to create bits/syscall.h for each arch. NOTE!!! This is run by "make -C libc/sysdeps/linux/$(TARGET_ARCH) headers" in the main Makefile, but I only changed libc/sysdeps/linux/i386/Makefile as I had no way of testing it for the other archs. Various arch maintainers, please check and update the corresponding Makefile... or report bugs ;-)... appropriately. You'll also want to "cvs del" syscall.h and add it to a .cvsignore in $(ARCH)/bits. Also added a define to uClibc_config.h, __UCLIBC_USE_UNIFIED_SYSCALL__, and moved i386 unified syscall stuff out of common and into i386/bits/syscalls.h. --- libc/sysdeps/linux/common/create_module.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libc/sysdeps/linux/common/create_module.c') diff --git a/libc/sysdeps/linux/common/create_module.c b/libc/sysdeps/linux/common/create_module.c index 223b909f5..93153c8b3 100644 --- a/libc/sysdeps/linux/common/create_module.c +++ b/libc/sysdeps/linux/common/create_module.c @@ -31,6 +31,9 @@ #if defined(__i386__) || defined(__m68k__) || defined(__arm__) #define __NR___create_module __NR_create_module +#ifdef __STR_NR_create_module +#define __STR_NR___create_module __STR_NR_create_module +#endif _syscall2(long, __create_module, const char *, name, size_t, size); /* By checking the value of errno, we know if we have been fooled * by the syscall2 macro making a very high address look like a -- cgit v1.2.3