mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +00:00
Merged some FreeBSD fixes
This commit is contained in:
commit
69fca4f3cb
3 changed files with 9 additions and 6 deletions
|
@ -173,7 +173,7 @@ include_directories(
|
|||
${SQLITE3_INCLUDE_DIR}
|
||||
)
|
||||
|
||||
set(EXECUTABLE_OUTPUT_PATH ../bin)
|
||||
set(EXECUTABLE_OUTPUT_PATH "${CMAKE_SOURCE_DIR}/bin")
|
||||
|
||||
if(BUILD_CLIENT)
|
||||
add_executable(${PROJECT_NAME} ${minetest_SRCS})
|
||||
|
|
|
@ -68,9 +68,9 @@ Nullstream dummyout;
|
|||
void assert_fail(const char *assertion, const char *file,
|
||||
unsigned int line, const char *function)
|
||||
{
|
||||
DEBUGPRINT("\nIn thread %x:\n"
|
||||
DEBUGPRINT("\nIn thread %lx:\n"
|
||||
"%s:%d: %s: Assertion '%s' failed.\n",
|
||||
(unsigned int)get_current_thread_id(),
|
||||
(unsigned long)get_current_thread_id(),
|
||||
file, line, function, assertion);
|
||||
|
||||
debug_stacks_print();
|
||||
|
@ -95,8 +95,8 @@ DebugStack::DebugStack(threadid_t id)
|
|||
|
||||
void DebugStack::print(FILE *file, bool everything)
|
||||
{
|
||||
fprintf(file, "DEBUG STACK FOR THREAD %x:\n",
|
||||
(unsigned int)threadid);
|
||||
fprintf(file, "DEBUG STACK FOR THREAD %lx:\n",
|
||||
(unsigned long)threadid);
|
||||
|
||||
for(int i=0; i<stack_max_i; i++)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue