aboutsummaryrefslogtreecommitdiff
path: root/toys/other
diff options
context:
space:
mode:
Diffstat (limited to 'toys/other')
-rw-r--r--toys/other/insmod.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/toys/other/insmod.c b/toys/other/insmod.c
index 098d2cfa..18ac9176 100644
--- a/toys/other/insmod.c
+++ b/toys/other/insmod.c
@@ -16,7 +16,11 @@ config INSMOD
#include "toys.h"
#include <sys/syscall.h>
+#ifdef SYS_finit_module
#define finit_module(fd, opts, flags) syscall(SYS_finit_module, fd, opts, flags)
+#else
+#define finit_module(a, b, c) (errno = ENOSYS)
+#endif
#define init_module(mod, len, opts) syscall(SYS_init_module, mod, len, opts)
void insmod_main(void)