File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ cmake_dependent_option(ENABLE_FREETYPE "Enable freetype" ON "ANDROID" OFF)
6969cmake_dependent_option(ENABLE_PULSE "Enable pulse" ON "LINUX OR SunOS" OFF )
7070cmake_dependent_option(ENABLE_DDCUTIL "Enable ddcutil" ON "LINUX" OFF )
7171cmake_dependent_option(ENABLE_DIRECTX_HEADERS "Enable DirectX headers for WSL" ON "LINUX" OFF )
72- cmake_dependent_option(ENABLE_ELF "Enable libelf" ON "LINUX OR FreeBSD OR ANDROID" OFF )
72+ cmake_dependent_option(ENABLE_ELF "Enable libelf" ON "LINUX OR ANDROID" OFF )
7373cmake_dependent_option(ENABLE_THREADS "Enable multithreading" ON "Threads_FOUND" OFF )
7474cmake_dependent_option(ENABLE_LIBZFS "Enable libzfs" ON "LINUX OR FreeBSD OR SunOS" OFF )
7575
Original file line number Diff line number Diff line change @@ -242,7 +242,7 @@ void ffListFeatures(void)
242242 #if FF_HAVE_DDCUTIL
243243 "libddcutil\n"
244244 #endif
245- #if FF_HAVE_ELF
245+ #if FF_HAVE_ELF || __sun || __FreeBSD__
246246 "libelf\n"
247247 #endif
248248 #if FF_HAVE_LIBZFS
Original file line number Diff line number Diff line change 11#include "binary.h"
22
3- #if defined(FF_HAVE_ELF ) || defined(__sun )
3+ #if defined(FF_HAVE_ELF ) || defined(__sun ) || defined( __FreeBSD__ )
44
55#include "common/io/io.h"
66#include "common/library.h"
77#include "util/stringUtils.h"
88
9+ // WARNING: On FreeBSD, there are system `/usr/include/libelf.h` and pkg elfutils `/usr/local/include/libelf.h`; they are not compatible.
910#include <libelf.h>
1011#include <fcntl.h>
1112
You can’t perform that action at this time.
0 commit comments