summaryrefslogtreecommitdiff
path: root/modules/unistd
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2009-09-09 15:25:26 -0600
committerEric Blake <ebb9@byu.net>2009-09-09 20:57:05 -0600
commit2d9360ffcc03fac61415d14595fd76e6abb59db3 (patch)
treed2e037f85c4c850c38bcb7f07fcd50359bc4c402 /modules/unistd
parent5ed5df8e8f519a74992edd0b7a6021b05b4952cd (diff)
downloadgnulib-2d9360ffcc03fac61415d14595fd76e6abb59db3.tar.gz
link: fix platform bugs
* m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs. * lib/link.c (link): Work around them. Fix related mingw bug. * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK. * modules/unistd (Makefile.am): Substitute it. * lib/unistd.in.h (link): Declare replacement. * doc/posix-functions/link.texi (link): Document this. * modules/link (Depends-on): Add strdup-posix, sys_stat. Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'modules/unistd')
-rw-r--r--modules/unistd1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/unistd b/modules/unistd
index 1f8b29e506..37ecaaafc4 100644
--- a/modules/unistd
+++ b/modules/unistd
@@ -86,6 +86,7 @@ unistd.h: unistd.in.h
-e 's|@''REPLACE_GETCWD''@|$(REPLACE_GETCWD)|g' \
-e 's|@''REPLACE_GETPAGESIZE''@|$(REPLACE_GETPAGESIZE)|g' \
-e 's|@''REPLACE_LCHOWN''@|$(REPLACE_LCHOWN)|g' \
+ -e 's|@''REPLACE_LINK''@|$(REPLACE_LINK)|g' \
-e 's|@''REPLACE_LSEEK''@|$(REPLACE_LSEEK)|g' \
-e 's|@''REPLACE_WRITE''@|$(REPLACE_WRITE)|g' \
-e 's|@''UNISTD_H_HAVE_WINSOCK2_H''@|$(UNISTD_H_HAVE_WINSOCK2_H)|g' \