Skip to content

Commit

Permalink
Merge #937: [Trivial] Add config include for building DEBUG_LOCKCONTE…
Browse files Browse the repository at this point in the history
…NTION

f86a618 [Trivial] Add config include for build settings. (Zannick)

Pull request description:

  config/veil-config.h includes `HAVE_THREAD_LOCAL`, without which `DEBUG_LOCKCONTENTION` will fail to build due to the `static_assert`.

  This allows building with `./configure CPPFLAGS="-DDEBUG_LOCKCONTENTION"` without manually adding `-DHAVE_THREAD_LOCAL` (when thread_local exists, of course).

  ### Tested ###
  Built via `./configure --with-incompatible-bdb CPPFLAGS="-DDEBUG_LOCKCONTENTION"` on Fedora, `CONFIG_SITE=$PWD/depends/x64_64-w64-mingw32/share/config.site ./configure --prefix=/ CPPFLAGS="-DDEBUG_LOCKCONTENTION"` on WSL Ubuntu 20.04

Tree-SHA512: 886005b4f1f9481ca0fbb301591c775dcea8ab2431e84fb11abfb0957c1cab91ea421d4ad6a650eeebe163a09f1a2d29b6e89fc24d5fb274c92155a9c0309405
  • Loading branch information
codeofalltrades committed May 1, 2021
2 parents 2207ed0 + f86a618 commit 564eb84
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/sync.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

#include <sync.h>

#ifdef HAVE_CONFIG_H
#include <config/veil-config.h>
#endif

#include <logging.h>
#include <utilstrencodings.h>

Expand Down

0 comments on commit 564eb84

Please sign in to comment.