X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=inline;f=lib%2Ffchmodat.c;h=0a7654315d385ac6e343781cba5d5db86f48068a;hb=107fb0e6719c49e35a6f4a3bdd0dabb19291efe0;hp=53cafe06d5f5ab1d741895b5bd2a57a1b2c84714;hpb=d4356ced2b562ac55101ab23a5321114c41e0eda;p=gnulib.git diff --git a/lib/fchmodat.c b/lib/fchmodat.c index 53cafe06d..0a7654315 100644 --- a/lib/fchmodat.c +++ b/lib/fchmodat.c @@ -1,5 +1,5 @@ /* Change the protections of file relative to an open directory. - Copyright (C) 2006, 2009 Free Software Foundation, Inc. + Copyright (C) 2006, 2009-2010 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 @@ -20,17 +20,19 @@ #include -#include "dirname.h" /* solely for definition of IS_ABSOLUTE_FILE_NAME */ -#include "openat.h" -#include "openat-priv.h" -#include "save-cwd.h" +#include #ifndef HAVE_LCHMOD /* Use a different name, to avoid conflicting with any system-supplied declaration. */ # undef lchmod # define lchmod lchmod_rpl -static int lchmod (char const *f, mode_t m) { errno = ENOSYS; return -1; } +static int +lchmod (char const *f _GL_UNUSED, mode_t m _GL_UNUSED) +{ + errno = ENOSYS; + return -1; +} #endif /* Solaris 10 has no function like this.