mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-30 00:37:23 +01:00
Binary (FreeBSD): use system libelf
There are pkg elfutils. However it is not ABI compatible with system libelf
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
#include "binary.h"
|
||||
|
||||
#if defined(FF_HAVE_ELF) || defined(__sun)
|
||||
#if defined(FF_HAVE_ELF) || defined(__sun) || defined(__FreeBSD__)
|
||||
|
||||
#include "common/io/io.h"
|
||||
#include "common/library.h"
|
||||
#include "util/stringUtils.h"
|
||||
|
||||
// WARNING: On FreeBSD, there are system `/usr/include/libelf.h` and pkg elfutils `/usr/local/include/libelf.h`; they are not compatible.
|
||||
#include <libelf.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user