audit: Avoid build failures on systems without renameat
authorPalmer Dabbelt <palmer@sifive.com>
Fri, 1 Dec 2017 19:32:00 +0000 (11:32 -0800)
committerPalmer Dabbelt <palmer@dabbelt.com>
Wed, 31 Jan 2018 03:07:54 +0000 (19:07 -0800)
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>
include/asm-generic/audit_dir_write.h

index da09fb986459ef9c68e35eb5833025992984c357..dd5a9dd7a102250cae7fbcedc1f9039afcb3bbbd 100644 (file)
@@ -27,7 +27,9 @@ __NR_mknod,
 __NR_mkdirat,
 __NR_mknodat,
 __NR_unlinkat,
+#ifdef __NR_renameat
 __NR_renameat,
+#endif
 __NR_linkat,
 __NR_symlinkat,
 #endif