mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
Fix build on FreeBSD (#126)
* Fix build on FreeBSD * Use more generic way to search libcrypto * Integrate macro for FreeBSD
This commit is contained in:
@@ -29,7 +29,10 @@ set(Python_FIND_FRAMEWORK NEVER)
|
||||
|
||||
# Find packages
|
||||
find_package(PkgConfig REQUIRED)
|
||||
pkg_search_module(CRYPTO REQUIRED libcrypto)
|
||||
pkg_search_module(CRYPTO libcrypto)
|
||||
if(NOT CRYPTO_FOUND)
|
||||
find_library(CRYPTO crypto REQUIRED)
|
||||
endif()
|
||||
pkg_search_module(CAPSTONE REQUIRED capstone)
|
||||
find_package(OpenGL REQUIRED)
|
||||
find_package(nlohmann_json REQUIRED)
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#include <arpa/inet.h>
|
||||
#endif
|
||||
|
||||
#ifdef __APPLE__
|
||||
#if defined(__APPLE__) || defined(__FreeBSD__)
|
||||
#define off64_t off_t
|
||||
#define fopen64 fopen
|
||||
#define fseeko64 fseek
|
||||
|
||||
Reference in New Issue
Block a user