summaryrefslogtreecommitdiff
path: root/gl/unistd.in.h
diff options
context:
space:
mode:
Diffstat (limited to 'gl/unistd.in.h')
-rw-r--r--gl/unistd.in.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gl/unistd.in.h b/gl/unistd.in.h
index fa4f4c83c0..34da9369c8 100644
--- a/gl/unistd.in.h
+++ b/gl/unistd.in.h
@@ -582,10 +582,14 @@ extern int link (const char *path1, const char *path2);
#endif
#if @GNULIB_LINKAT@
+# if @REPLACE_LINKAT@
+# undef linkat
+# define linkat rpl_linkat
+# endif
/* Create a new hard link for an existing file, relative to two
directories. FLAG controls whether symlinks are followed.
Return 0 if successful, otherwise -1 and errno set. */
-# if !@HAVE_LINKAT@
+# if !@HAVE_LINKAT@ || @REPLACE_LINKAT@
extern int linkat (int fd1, const char *path1, int fd2, const char *path2,
int flag);
# endif