Magellan Linux

Annotation of /trunk/tdb/patches/tdb-1.3.1-include-stdbool.h-in-tdb.h.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2519 - (hide annotations) (download)
Wed Nov 5 14:57:25 2014 UTC (9 years, 7 months ago) by niro
File size: 703 byte(s)
-added patch to fix a missing include
1 niro 2519 From 4e14a437963ba54987cd58b4e0705d9a6d8aea6f Mon Sep 17 00:00:00 2001
2     From: Adam Williamson <awilliam@redhat.com>
3     Date: Fri, 23 May 2014 10:08:14 -0700
4     Subject: [PATCH] tdb/include: include stdbool.h in tdb.h
5    
6     Commit db5bda56bf08 (tdb: add TDB_MUTEX_LOCKING support) adds a bool, but does
7     not include stdbool.h. This causes any build including tdb.h to fail, at least
8     for me with GCC 4.9.0.
9     ---
10     lib/tdb/include/tdb.h | 1 +
11     1 file changed, 1 insertion(+)
12    
13     diff --git a/include/tdb.h b/include/tdb.h
14     index 5ea5e60..03e429c 100644
15     --- a/include/tdb.h
16     +++ b/include/tdb.h
17     @@ -31,6 +31,7 @@ extern "C" {
18     #endif
19    
20     #include <signal.h>
21     +#include <stdbool.h>
22    
23     /**
24     * @defgroup tdb The tdb API
25     --
26     1.9.3
27