summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/__syscall_fcntl.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/__syscall_fcntl.c')
-rw-r--r--libc/sysdeps/linux/common/__syscall_fcntl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/__syscall_fcntl.c b/libc/sysdeps/linux/common/__syscall_fcntl.c
index f094616cb..ca9aff5e7 100644
--- a/libc/sysdeps/linux/common/__syscall_fcntl.c
+++ b/libc/sysdeps/linux/common/__syscall_fcntl.c
@@ -11,10 +11,13 @@
#include <stdarg.h>
#include <fcntl.h>
+#undef __fcntl
+
#if defined __UCLIBC_HAS_LFS__ && defined __NR_fcntl64
extern int __fcntl64(int fd, int cmd, ...) attribute_hidden;
#endif
+#undef fcntl
#define __NR___syscall_fcntl __NR_fcntl
static inline
_syscall3(int, __syscall_fcntl, int, fd, int, cmd, long, arg);