Mercurial > hg > octave-shane > gnulib-hg
diff m4/lchown.m4 @ 7409:830788a4cbd4
[lib/ChangeLog]
Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
<http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
* dirchownmod.c: Include lchown.h.
* lchown.c: Don't include files that lchown.h now includes.
Don't declare chown, since lchown.h now does that.
* lchown.h: Include errno.h, sys/types.h, unistd.h.
(lchown): Define to rpl_chown if lchown is declared but
does not exist. Declare using a prototype if lchown is not
declared. Add a copyright notice.
* mkstemp.h: Include <unistd.h>.
* openat.c: Include lchown.h.
[m4/ChangeLog]
* lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Thu, 05 Oct 2006 22:49:57 +0000 |
parents | be9e01d008cb |
children | 45c727466eb8 |
line wrap: on
line diff
--- a/m4/lchown.m4 +++ b/m4/lchown.m4 @@ -1,4 +1,4 @@ -#serial 9 +#serial 10 dnl Copyright (C) 1998, 2001, 2003, 2004, 2005, 2006 Free Software dnl Foundation, Inc. @@ -15,5 +15,6 @@ AC_REQUIRE([AC_TYPE_UID_T]) AC_REQUIRE([gl_FUNC_CHOWN]) AC_REQUIRE([gl_STAT_MACROS]) + AC_CHECK_DECLS_ONCE([lchown]) AC_REPLACE_FUNCS(lchown) ])