changeset 17708:994f65de77de

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".
author Paul Eggert <eggert@cs.ucla.edu>
date Tue, 17 Jun 2014 08:09:57 -0700
parents e2fa11403fca
children e76613a60b02
files ChangeLog lib/acl.h
diffstat 2 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
+
+	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  <bkorb@gnu.org>
 	Jim Meyering  <meyering@fb.com>
 
--- 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 <stdbool.h>
 #include <sys/types.h>
 #include <sys/stat.h>
@@ -28,3 +31,5 @@
 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