diff options
author | Rich Felker <dalias@aerifal.cx> | 2013-07-17 10:43:04 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2013-07-17 10:43:04 -0400 |
commit | 3df0b66ee95c837496ae434ba7a2282d97ca71ef (patch) | |
tree | a2d8a91b7f4b9ce22634631ef42d59c17d009787 /src/internal | |
parent | ea81c0624f0213430ae8fb959e30373eeaaf391c (diff) | |
download | musl-3df0b66ee95c837496ae434ba7a2282d97ca71ef.tar.gz musl-3df0b66ee95c837496ae434ba7a2282d97ca71ef.tar.bz2 musl-3df0b66ee95c837496ae434ba7a2282d97ca71ef.tar.xz musl-3df0b66ee95c837496ae434ba7a2282d97ca71ef.zip |
fix missing argument in variadic syscall macros
for 0-argument syscalls (1 argument to the macro, the syscall number),
the __SYSCALL_NARGS_X macro's ... argument was not satisfied. newer
compilers seem to care about this.
Diffstat (limited to 'src/internal')
-rw-r--r-- | src/internal/syscall.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/internal/syscall.h b/src/internal/syscall.h index 7381efea..8eebe71e 100644 --- a/src/internal/syscall.h +++ b/src/internal/syscall.h @@ -19,7 +19,7 @@ long __syscall_ret(unsigned long), __syscall(long, ...), #define __syscall7(n,a,b,c,d,e,f,g) (__syscall)(n,(long)(a),(long)(b),(long)(c),(long)(d),(long)(e),(long)(f),(long)g) #define __SYSCALL_NARGS_X(a,b,c,d,e,f,g,h,n,...) n -#define __SYSCALL_NARGS(...) __SYSCALL_NARGS_X(__VA_ARGS__,7,6,5,4,3,2,1,0) +#define __SYSCALL_NARGS(...) __SYSCALL_NARGS_X(__VA_ARGS__,7,6,5,4,3,2,1,0,) #define __SYSCALL_CONCAT_X(a,b) a##b #define __SYSCALL_CONCAT(a,b) __SYSCALL_CONCAT_X(a,b) #define __SYSCALL_DISP(b,...) __SYSCALL_CONCAT(b,__SYSCALL_NARGS(__VA_ARGS__))(__VA_ARGS__) |