linkat: support Linux 2.6.17
authorEric Blake <ebb9@byu.net>
Tue, 6 Oct 2009 03:30:33 +0000 (21:30 -0600)
committerEric Blake <ebb9@byu.net>
Tue, 6 Oct 2009 03:34:28 +0000 (21:34 -0600)
commitcdba659e0746e0d7c6ecbcabfbb25132f5418a38
treebdccd092a9742d8001c7783a9b58da4b9a0e47e7
parent38742aee633001eca07469834ce365df511359ca
linkat: support Linux 2.6.17

* m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
linkat on Linux, but allow cache variable override.
* lib/linkat.c (rpl_linkat): Define override.
* modules/linkat (Depends-on): Add symlinkat.
* m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
* modules/unistd (Makefile.am): Substitute it.
* lib/unistd.in.h (linkat): Declare replacement.
Reported by Pádraig Brady.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
lib/linkat.c
lib/unistd.in.h
m4/linkat.m4
m4/unistd_h.m4
modules/linkat
modules/unistd