diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2022-01-19 13:28:15 +0300 |
---|---|---|
committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2022-01-19 13:28:15 +0300 |
commit | b47eb5055bd6ee6f00533c78d56a4c900052d6e2 (patch) | |
tree | c1b177cc7694e7cd39be3021241ca0dee985e065 | |
parent | a517b06fb5a693e4cb3bc7704b657793ee638430 (diff) |
BUILD: include libgen.h for files which use basename(3)
As per POSIX, basename(3) is defined in libgen.h. Without including
this header file the code presently does not compile (on musl) due to
`-Werror` and a `-Wimplicit-function-declaration` warning.
-rw-r--r-- | plugins/HostLinux.cpp | 1 | ||||
-rw-r--r-- | plugins/mumble_positional_audio_linux.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/plugins/HostLinux.cpp b/plugins/HostLinux.cpp index 47c182d07..b133b6f26 100644 --- a/plugins/HostLinux.cpp +++ b/plugins/HostLinux.cpp @@ -8,6 +8,7 @@ #include "mumble_positional_audio_utils.h" #include <cstring> +#include <libgen.h> #include <sstream> #include <sys/uio.h> diff --git a/plugins/mumble_positional_audio_linux.h b/plugins/mumble_positional_audio_linux.h index 9b9542190..9a240591d 100644 --- a/plugins/mumble_positional_audio_linux.h +++ b/plugins/mumble_positional_audio_linux.h @@ -15,6 +15,7 @@ #include <cstring> #include <elf.h> #include <iostream> +#include <libgen.h> #include <sstream> #include <stdio.h> #include <stdlib.h> |