From 0f10d6d163e4acb35e444a88d3dd79a94a8252dc Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 10 Feb 2004 20:52:00 +0000 Subject: Do not include the create_module syscall if it is not present --- 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 015e2d8fb..1283503fe 100644 --- a/libc/sysdeps/linux/common/create_module.c +++ b/libc/sysdeps/linux/common/create_module.c @@ -29,6 +29,8 @@ //#define __NR_create_module 127 +#ifdef __NR_create_module + #if defined(__i386__) || defined(__m68k__) || defined(__arm__) || defined(__cris__) || defined(__i960__) #define __NR___create_module __NR_create_module #ifdef __STR_NR_create_module @@ -64,4 +66,5 @@ unsigned long create_module(const char *name, size_t size) _syscall2(unsigned long, create_module, const char *, name, size_t, size); #endif +#endif -- cgit v1.2.3