~ubuntu-branches/debian/sid/tdb/sid

« back to all changes in this revision

Viewing changes to debian/patches/missing-stdbool-include.patch

  • Committer: Package Import Robot
  • Author(s): Iain Lane
  • Date: 2014-06-04 16:10:40 UTC
  • Revision ID: package-import@ubuntu.com-20140604161040-sb28v4rh6eo8l0wz
Tags: 1.3.0-1.1
* Non-maintainer upload.
* Cherry-pick patch from upstream bug #10625 to fix FTBFS of
  reverse-build-deps which include <tdb.h> due to missing <stdbool.h>
  include. (Closes: #750572)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
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