path: root/src/internal/syscall.h
diff options
authorRich Felker <>2018-09-13 00:03:20 -0400
committerRich Felker <>2018-09-13 00:03:20 -0400
commit036df43d2a1d327370af005f861598d814c55121 (patch)
tree07124791d274600f86809de5f4b0866ee1e73cbb /src/internal/syscall.h
parent7634101069db26b003adeec09c6aa14646363557 (diff)
fix regression with compilers not incorporating C99 DR#289 resolution
as originally published, the C99 syntax only allowed static index parameter declarators when a gratuitous parameter name was included. gcc 3, which some projects use for bootstrapping, is a supported C99 compiler, but does not have the fix to the standard incorporated, so edit the affected declaration to conform to the earlier buggy C99 syntax.
Diffstat (limited to 'src/internal/syscall.h')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/internal/syscall.h b/src/internal/syscall.h
index da70ce92..06c5527f 100644
--- a/src/internal/syscall.h
+++ b/src/internal/syscall.h
@@ -244,7 +244,7 @@ hidden long __syscall_ret(unsigned long), __syscall(syscall_arg_t, ...),
#define __sys_open_cp(...) __SYSCALL_DISP(__sys_open_cp,,__VA_ARGS__)
#define sys_open_cp(...) __syscall_ret(__sys_open_cp(__VA_ARGS__))
-hidden void __procfdname(char [static 15+3*sizeof(int)], unsigned);
+hidden void __procfdname(char __buf[static 15+3*sizeof(int)], unsigned);
hidden void *__vdsosym(const char *, const char *);