Hash :
4131c373
Author :
Date :
2006-10-05T22:49:57
[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.
#serial 10
dnl Copyright (C) 1998, 2001, 2003, 2004, 2005, 2006 Free Software
dnl Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
dnl From Jim Meyering.
dnl Provide lchown on systems that lack it.
AC_DEFUN([gl_FUNC_LCHOWN],
[
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)
])