generic: add renameat2 system call number for i386
authorTheodore Ts'o <tytso@mit.edu>
Wed, 16 Apr 2014 00:18:41 +0000 (10:18 +1000)
committerDave Chinner <david@fromorbit.com>
Wed, 16 Apr 2014 00:18:41 +0000 (10:18 +1000)
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
src/renameat2.c

index 8613aa98ed4dc4275a9a186d0550d9f073468ae0..2980f14fa54aca67ead762d245e5f3297f07bb72 100644 (file)
 #define SYS_renameat2 353
 #endif
 
 #define SYS_renameat2 353
 #endif
 
+#if !defined(SYS_renameat2) && defined(__i386__)
+#define SYS_renameat2 353
+#endif
+
 static int renameat2(int dfd1, const char *path1,
                     int dfd2, const char *path2,
                     unsigned int flags)
 static int renameat2(int dfd1, const char *path1,
                     int dfd2, const char *path2,
                     unsigned int flags)