Browse Source

Do not include the create_module syscall if it is not present

Eric Andersen 20 years ago
parent
commit
0f10d6d163
1 changed files with 3 additions and 0 deletions
  1. 3 0
      libc/sysdeps/linux/common/create_module.c

+ 3 - 0
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