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:
Nobutaka Mantani
2021-01-11 02:52:00 +09:00
committed by GitHub
parent 9fe8a0f491
commit d9db8401e2
2 changed files with 5 additions and 2 deletions

View File

@@ -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