]> Savannah Git Hosting - gnulib.git/commitdiff
acl: port to gcc -Wredundant-decls
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 17 Jun 2014 15:09:57 +0000 (08:09 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 17 Jun 2014 16:17:20 +0000 (09:17 -0700)
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".

ChangeLog
lib/acl.h

index 5dd0d6f64c43c1aa7a730ac66bdf711fcb11cbed..818ff806e4e4f7852d1ca9c17a0c48dc1f532fa6 100644 (file)
--- 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>
 
index d024f74ba67021725c11d1017558cc7deccd3daf..f67e350df057450bde9a357323c3dfc1dc1bfab2 100644 (file)
--- 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 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