summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-02-10 20:52:00 +0000
committerEric Andersen <andersen@codepoet.org>2004-02-10 20:52:00 +0000
commit0f10d6d163e4acb35e444a88d3dd79a94a8252dc (patch)
tree4b7b86cd000b41f7292ecc4eabf8c261f90a6f29 /libc/sysdeps/linux/common
parent2fb0a71589effb8d2809f6e544995053a2728a31 (diff)
Do not include the create_module syscall if it is not present
Diffstat (limited to 'libc/sysdeps/linux/common')
-rw-r--r--libc/sysdeps/linux/common/create_module.c3
1 files changed, 3 insertions, 0 deletions
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