Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix minipal build under Mono.
  • Loading branch information
lateralusX committed Mar 21, 2025
commit 0155fd69a91339c19ebbdda11339abf0c7ef4b49
1 change: 0 additions & 1 deletion src/mono/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,6 @@ endif()
### End of OS specific checks

include_directories("${CLR_SRC_NATIVE_DIR}")
add_subdirectory(${CLR_SRC_NATIVE_DIR}/minipal minipal)

if(NOT DISABLE_LIBS)
set(INSTALL_MONO_API 1)
Expand Down
1 change: 1 addition & 0 deletions src/mono/mono/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
project(mono)

set(subdirs
minipal
eglib
utils
sgen
Expand Down
10 changes: 10 additions & 0 deletions src/mono/mono/minipal/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

if (HOST_WIN32)
add_definitions(-DHOST_WINDOWS)
endif (HOST_WIN32)

if (HOST_DARWIN OR HOST_ANDROID OR HOST_LINUX OR HOST_FREEBSD OR HOST_SOLARIS OR HOST_HAIKU OR HOST_BROWSER)
add_definitions(-DHOST_UNIX)
endif (HOST_DARWIN OR HOST_ANDROID OR HOST_LINUX OR HOST_FREEBSD OR HOST_SOLARIS OR HOST_HAIKU OR HOST_BROWSER)

add_subdirectory(${CLR_SRC_NATIVE_DIR}/minipal minipal)
1 change: 1 addition & 0 deletions src/native/minipal/guid.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <assert.h>
#ifdef HOST_WINDOWS
#include <Windows.h>
#include <objbase.h>
#endif

// See RFC-4122 section 4.4 on creation of random GUID.
Expand Down