mirror of
https://github.com/xmrig/xmrig.git
synced 2025-03-12 09:37:35 +00:00
Enable FreeBSD support.
This commit is contained in:
parent
3df47052ed
commit
9dffcdaddd
2 changed files with 2 additions and 3 deletions
|
@ -287,12 +287,11 @@ static off_t address_from_efi()
|
|||
FILE *efi_systab;
|
||||
const char *filename;
|
||||
char linebuf[64];
|
||||
off_t address = 0;
|
||||
# elif defined(__FreeBSD__)
|
||||
char addrstr[KENV_MVALLEN + 1];
|
||||
# endif
|
||||
|
||||
off_t address = 0;
|
||||
|
||||
# if defined(__linux__)
|
||||
if ((efi_systab = fopen(filename = "/sys/firmware/efi/systab", "r")) == nullptr && (efi_systab = fopen(filename = "/proc/efi/systab", "r")) == nullptr) {
|
||||
return EFI_NOT_FOUND;
|
||||
|
|
|
@ -17,7 +17,7 @@ if (WITH_DMI)
|
|||
|
||||
if (XMRIG_OS_WIN)
|
||||
list(APPEND SOURCES src/hw/dmi/DmiReader_win.cpp)
|
||||
elseif(XMRIG_OS_LINUX)
|
||||
elseif(XMRIG_OS_LINUX OR XMRIG_OS_FREEBSD)
|
||||
list(APPEND SOURCES src/hw/dmi/DmiReader_unix.cpp)
|
||||
endif()
|
||||
else()
|
||||
|
|
Loading…
Reference in a new issue