X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Ffchmodat.c;h=34e956cc8745bce7b0aabe891abcb5f6b4a1b9ab;hb=a3232e87aa43983f16befedc0b6311ac02aceacb;hp=53cafe06d5f5ab1d741895b5bd2a57a1b2c84714;hpb=d4356ced2b562ac55101ab23a5321114c41e0eda;p=gnulib.git diff --git a/lib/fchmodat.c b/lib/fchmodat.c index 53cafe06d..34e956cc8 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-2013 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.