chiark / gitweb /
missing: add renameat2() definition for 64bit arm (#5378)
authorLennart Poettering <lennart@poettering.net>
Fri, 17 Feb 2017 18:10:09 +0000 (19:10 +0100)
committerSven Eden <yamakuzure@gmx.net>
Mon, 17 Jul 2017 15:58:36 +0000 (17:58 +0200)
Following a similar commit in casync:

https://github.com/elogind/casync/pull/10

src/basic/missing_syscall.h

index 84598c0..5a39251 100644 (file)
@@ -197,6 +197,8 @@ static inline pid_t raw_getpid(void) {
 #      define __NR_renameat2 316
 #    elif defined __arm__
 #      define __NR_renameat2 382
+#    elif defined __aarch64__
+#      define __NR_renameat2 276
 #    elif defined _MIPS_SIM
 #      if _MIPS_SIM == _MIPS_SIM_ABI32
 #        define __NR_renameat2 4351