mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 10:25:47 +02:00
chore: fix build on FreeBSD (#4412)
* chore: build on FreeBSD * docs * older helio
This commit is contained in:
parent
e8f43d6858
commit
ec6ac23ebc
4 changed files with 11 additions and 3 deletions
|
@ -45,7 +45,7 @@ function(gen_bison name)
|
|||
set_source_files_properties(${name}.cc ${name}_base.h PROPERTIES GENERATED TRUE)
|
||||
endfunction()
|
||||
|
||||
if (APPLE)
|
||||
if (APPLE OR ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
|
||||
set(SED_REPL sed "-i" '')
|
||||
else()
|
||||
set(SED_REPL sed "-i")
|
||||
|
|
|
@ -62,8 +62,10 @@ void _serverPanic(const char *file, int line, const char *msg, ...) {
|
|||
serverLog(LL_WARNING, "!!! Software Failure. Press left mouse button to continue");
|
||||
serverLog(LL_WARNING, "Guru Meditation: %s #%s:%d", fmtmsg,file,line);
|
||||
#ifndef NDEBUG
|
||||
#ifdef __APPLE__
|
||||
#if defined(__APPLE__)
|
||||
__assert_rtn(msg, file, line, "");
|
||||
#elif defined(__FreeBSD__)
|
||||
__assert("", file, line, msg);
|
||||
#else
|
||||
__assert_fail(msg, file, line, "");
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue