mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-15 11:59:16 +01:00
build: fix compilation issue on OpenBSD
During our development, we modified the way we report backtraces. On a minimal configuration in OpenBSD, it seems that we no longer compile from commita9f26b7d07
because our conditional code is buggy. With the following compiler vultr# cc -v OpenBSD clang version 13.0.0 Target: amd64-unknown-openbsd7.3 Thread model: posix InstalledDir: /usr/bin We have the following error cc common/channel_id.c cc common/daemon.c common/daemon.c:218:2: error: implicit declaration of function 'add_steal_notifiers' is invalid in C99 [-Werror,-Wimplicit-function-declaration] add_steal_notifiers(NULL); ^ 1 error generated. gmake: *** [Makefile:298: common/daemon.o] Error 1 Reported-by: @grubles Fixesa9f26b7d07
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
This commit is contained in:
parent
8f6a02c182
commit
e936eea9cb
1 changed files with 4 additions and 0 deletions
|
@ -136,6 +136,10 @@ const char *backtrace_symname(const tal_t *ctx, const void *addr)
|
|||
{
|
||||
return "unknown (backtrace unsupported)";
|
||||
}
|
||||
|
||||
static void add_steal_notifiers(const tal_t *root)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
int daemon_poll(struct pollfd *fds, nfds_t nfds, int timeout)
|
||||
|
|
Loading…
Add table
Reference in a new issue