bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] exclude: Fix header file problems.


From: Paolo Bonzini
Subject: [PATCH] exclude: Fix header file problems.
Date: Thu, 3 Dec 2009 18:41:23 +0100

A missing stdbool.h inclusion was reported for grep.  This patch
fixes it and, since I was touching the file, adds multiple inclusion
guards around the body of exclude.h.

Committed and pushed.

* lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
---
 ChangeLog     |    5 +++++
 lib/exclude.h |    7 +++++++
 2 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 6eec830..da260c1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-12-03  Paolo Bonzini  <address@hidden>
+
+       exclude: Fix header file problems.
+       * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
+
 2009-12-01  Jim Meyering  <address@hidden>
 
        fts: fts_open: do not let an empty string cause immediate failure
diff --git a/lib/exclude.h b/lib/exclude.h
index e0735e1..fa5b120 100644
--- a/lib/exclude.h
+++ b/lib/exclude.h
@@ -16,6 +16,11 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
+#ifndef _GL_EXCLUDE_H
+#define _GL_EXCLUDE_H 1
+
+#include <stdbool.h>
+
 /* Written by Paul Eggert <address@hidden>
    and Sergey Poznyakoff <address@hidden> */
 
@@ -43,3 +48,5 @@ int add_exclude_file (void (*) (struct exclude *, char const 
*, int),
                      struct exclude *, char const *, int, char);
 bool excluded_file_name (struct exclude const *, char const *);
 bool exclude_fnmatch (char const *pattern, char const *f, int options);
+
+#endif /* _GL_EXCLUDE_H */
-- 
1.6.5.2





reply via email to

[Prev in Thread] Current Thread [Next in Thread]