link: fix platform bugs
authorEric Blake <ebb9@byu.net>
Wed, 9 Sep 2009 21:25:26 +0000 (15:25 -0600)
committerEric Blake <ebb9@byu.net>
Thu, 10 Sep 2009 02:57:05 +0000 (20:57 -0600)
commit2d9360ffcc03fac61415d14595fd76e6abb59db3
treed2e037f85c4c850c38bcb7f07fcd50359bc4c402
parent5ed5df8e8f519a74992edd0b7a6021b05b4952cd
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>
ChangeLog
doc/posix-functions/link.texi
lib/link.c
lib/unistd.in.h
m4/link.m4
m4/unistd_h.m4
modules/link
modules/unistd