aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-08-11 12:32:36 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-08-11 12:32:36 +0300
commit69fca4f3cb59b3c3c5788830807d241fc8a0fc9a (patch)
treea72364abcca170bf0389785f37f6ef079d7bb84d /src
parent34492ce4803982a0aab84be88eab24b6ff0b4c3b (diff)
parentf6ed45fc20876fb01027446a1c3960658c030870 (diff)
downloadminetest-69fca4f3cb59b3c3c5788830807d241fc8a0fc9a.tar.gz
minetest-69fca4f3cb59b3c3c5788830807d241fc8a0fc9a.tar.bz2
minetest-69fca4f3cb59b3c3c5788830807d241fc8a0fc9a.zip
Merged some FreeBSD fixes
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt2
-rw-r--r--src/debug.cpp8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 883b809e2..0fceb85e7 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -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})
diff --git a/src/debug.cpp b/src/debug.cpp
index a19186232..befd73a38 100644
--- a/src/debug.cpp
+++ b/src/debug.cpp
@@ -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++)
{