Hi Jim,
On MacOS X, we have this warning during the compilation of fchownat.c:
at-func.c:39: warning: implicit declaration of function `lchown'
The reason is that lchown() is not available on this system and therefore
not declared in <unistd.h>. This proposed patch fixes it:
2007-03-17 Bruno Haible <[EMAIL PROTECTED]>
* lib/fchownat.c: Include lchown.h.
--- fchownat.c.bak Sun Dec 24 18:08:04 2006
+++ fchownat.c Sat Mar 17 19:49:50 2007
@@ -4,7 +4,7 @@
when the buggy fchownat-with-AT_SYMLINK_NOFOLLOW operates on a symlink, it
mistakenly affects the symlink referent, rather than the symlink itself.
- Copyright (C) 2006 Free Software Foundation, Inc.
+ Copyright (C) 2006-2007 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -29,6 +29,7 @@
#include <unistd.h>
#include "dirname.h" /* solely for definition of IS_ABSOLUTE_FILE_NAME */
+#include "lchown.h"
#include "save-cwd.h"
#include "openat-priv.h"