From: Paul Eggert Date: Tue, 17 Jun 2014 15:09:57 +0000 (-0700) Subject: acl: port to gcc -Wredundant-decls X-Git-Tag: v1.0~7350 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=9a3928ed14ffe48784793c96a628871db9cb9c85;p=gnulib.git acl: port to gcc -Wredundant-decls From a request by Dmitry Antipov in: http://lists.gnu.org/archive/html/emacs-devel/2014-06/msg00263.html * lib/acl.h (_GL_ACL_H): New macro. Protect entire contents with "#ifndef _GL_ACL_H". --- diff --git a/ChangeLog b/ChangeLog index 5dd0d6f64c..818ff806e4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2014-06-17 Paul Eggert + + acl: port to gcc -Wredundant-decls + From a request by Dmitry Antipov in: + http://lists.gnu.org/archive/html/emacs-devel/2014-06/msg00263.html + * lib/acl.h (_GL_ACL_H): New macro. Protect entire contents with + "#ifndef _GL_ACL_H". + 2014-06-11 Bruce Korb Jim Meyering diff --git a/lib/acl.h b/lib/acl.h index d024f74ba6..f67e350df0 100644 --- a/lib/acl.h +++ b/lib/acl.h @@ -17,6 +17,9 @@ Written by Paul Eggert. */ +#ifndef _GL_ACL_H +#define _GL_ACL_H 1 + #include #include #include @@ -28,3 +31,5 @@ int set_acl (char const *, int, mode_t); int qcopy_acl (char const *, int, char const *, int, mode_t); int copy_acl (char const *, int, char const *, int, mode_t); int chmod_or_fchmod (char const *, int, mode_t); + +#endif