--- a/src/third_party/lss/linux_syscall_support.h
+++ b/src/third_party/lss/linux_syscall_support.h
@@ -81,6 +81,11 @@
  */
 #ifndef SYS_LINUX_SYSCALL_SUPPORT_H
 #define SYS_LINUX_SYSCALL_SUPPORT_H
+# undef lstat64
+# undef fstat64
+# undef stat64
+# undef getdents64
+# undef fstatat64

 /* We currently only support x86-32, x86-64, ARM, MIPS, PPC, s390 and s390x
  * on Linux.