Skip to content

Commit

Permalink
Merge remote-tracking branch 'opcm-github/master'
Browse files Browse the repository at this point in the history
Change-Id: I5b581719b377827acf02531014abc4f09a9ab899
  • Loading branch information
rdementi committed Jun 15, 2023
2 parents ad1ef37 + 2dc9213 commit 95a0abd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/MacMSRDriver/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ target_link_libraries(PcmMsr PRIVATE ${IOKIT_LIBRARY})
add_subdirectory(PcmMsr)

# Installation
install(TARGETS PcmMsr DESTINATION "local/lib")
install(TARGETS PcmMsr DESTINATION "lib")
5 changes: 5 additions & 0 deletions src/MacMSRDriver/PcmMsr/UserKernelShared.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@

#define PCM_API

// kIOMainPortDefault is not supported before macOS Monterey
#if (MAC_OS_X_VERSION_MAX_ALLOWED < 120000)
#define kIOMainPortDefault kIOMasterPortDefault
#endif

#include <stdint.h>
#include "../../topologyentry.h"

Expand Down

0 comments on commit 95a0abd

Please sign in to comment.