tdb/include_stdbool_bso10625.patch
Lars Müller 1b2c8329e7 - Update to version 1.3.0.
+ add TDB_MUTEX_LOCKING support
  + consolidate tdb allocation code - re-use dead records at hash top.
  + don't alter errno on success of tdb_open_ex()
  + introduce tdb->hdr_ofs
  + introduce TDB_SUPPORTED_FEATURE_FLAGS
  + return ENOSYS if the tdb was created with spinlocks.
  + use asprintf() to simplify tdb_summary()
  + test: add a "skip()" macro.
      add marklock deadlock test
      add mutex related tests
      add PING command to external-agent.c
      add shutdown_agent() helper function
      add UNMAP command to external-agent.c
      always call fflush() after [f]printf() in tap-interface.h
      avoid const warnings by using 'discard_const_p(uint8_t,' instead of
		  '(void *)'
      correctly use stderr, not stdout, in fail()
      remove "\n" in diag() arguments
  + tools: add -l option to tdbbackup
      add -l option to tdbtool
      add -m option to tdbtorture
      Allow tdbtool to r/o open mutexed tdbs
      avoid const warnings in tdbdump.c
      explicitly use TDB_NOLOCK in tdbdump
  + tdb_wrap: Remove tdb_wrap_open_ again
  + wscript: maintain a global list of unit tests
- Include stdbool.h in tdb.h; (bso#10625).
  + include_stdbool_bso10625.patch

OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/tdb?expand=0&rev=50
2014-05-23 21:23:11 +00:00

28 lines
735 B
Diff

From 4e14a437963ba54987cd58b4e0705d9a6d8aea6f Mon Sep 17 00:00:00 2001
From: Adam Williamson <awilliam@redhat.com>
Date: Fri, 23 May 2014 10:08:14 -0700
Subject: [PATCH] tdb/include: include stdbool.h in tdb.h
Commit db5bda56bf08 (tdb: add TDB_MUTEX_LOCKING support) adds a bool, but does
not include stdbool.h. This causes any build including tdb.h to fail, at least
for me with GCC 4.9.0.
---
lib/tdb/include/tdb.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/tdb/include/tdb.h b/lib/tdb/include/tdb.h
index 5ea5e60..03e429c 100644
--- a/lib/tdb/include/tdb.h
+++ b/lib/tdb/include/tdb.h
@@ -31,6 +31,7 @@ extern "C" {
#endif
#include <signal.h>
+#include <stdbool.h>
/**
* @defgroup tdb The tdb API
--
1.9.3