From 32b52a46c6e9e727e340b13ce22cbc415db547b9 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Thu, 11 Sep 2014 21:02:46 +0200 Subject: MINOR: add support for the MIPS architecture on Linux We need to define the syscall numbers for splice(), tee(), vmsplice(). One day we should change this to support the libc when it's available. --- inject.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/inject.c b/inject.c index 3437c8a..61f76d5 100644 --- a/inject.c +++ b/inject.c @@ -125,6 +125,10 @@ #define __NR_splice 340 #define __NR_tee 342 #define __NR_vmsplice 343 +#elif defined (__mips__) +#define __NR_splice 304 +#define __NR_tee 306 +#define __NR_vmsplice 307 #endif /* $arch */ #endif /* __NR_splice */ -- 1.7.12.1