summaryrefslogtreecommitdiff
path: root/include/asm-generic
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer@sifive.com>2017-12-01 11:32:00 -0800
committerPalmer Dabbelt <palmer@dabbelt.com>2018-01-30 19:07:54 -0800
commit155d33af7eeef19909d77aa0996c1d2dd8f1fa76 (patch)
tree3411d7d08d51a3210f02358c7a48e0fe1953a057 /include/asm-generic
parentd8a5b80568a9cb66810e75b182018e9edb68e8ff (diff)
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. Reviewed-by: Christoph Hellwig <hch@lst.de> Acked-by: Olof Johansson <olof@lixom.net> Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Diffstat (limited to 'include/asm-generic')
-rw-r--r--include/asm-generic/audit_dir_write.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-generic/audit_dir_write.h b/include/asm-generic/audit_dir_write.h
index da09fb986459..dd5a9dd7a102 100644
--- a/include/asm-generic/audit_dir_write.h
+++ b/include/asm-generic/audit_dir_write.h
@@ -27,7 +27,9 @@ __NR_mknod,
__NR_mkdirat,
__NR_mknodat,
__NR_unlinkat,
+#ifdef __NR_renameat
__NR_renameat,
+#endif
__NR_linkat,
__NR_symlinkat,
#endif