Skip to contentSkip to conversation

audit: Avoid build failures on systems without renameat

PATCH In review Palmer Dabbelt 2 participants 2 messages Dec 1, 2017 – Dec 2, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 audit: Avoid build failures on systems without renameat

renameat has been deprecated in favor of renameat2 for new ports. This allows the audit tests to build on RISC-V.

---
 include/asm-generic/audit_dir_write.h | 2 ++
 1 file changed, 2 insertions(+)
include/asm-generic/audit_dir_write.h +2 -0
index da09fb986459..dd5a9dd7a102 100644
@@ -27,7 +27,9 @@ __NR_mknod,
 __NR_mkdirat,
 __NR_mknodat,
 __NR_unlinkat,
+#ifdef __NR_renameat
 __NR_renameat,
+#endif
 __NR_linkat,
 __NR_symlinkat,
 #endif
Signature · 1 line
2.13.6