File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -135,6 +135,10 @@ fn main() {
135135 . flag_if_supported ( "-Wbad-function-cast" )
136136 . flag_if_supported ( "-Wuninitialized" ) ;
137137
138+ // On Windows, link explicitly advapi32 for security functions
139+ #[ cfg( target_os = "windows" ) ]
140+ println ! ( "cargo:rustc-link-lib=advapi32" ) ;
141+
138142 if cfg ! ( feature = "posix-sem" ) {
139143 builder. define ( "MDB_USE_POSIX_SEM" , None ) ;
140144 }
Original file line number Diff line number Diff line change @@ -135,6 +135,10 @@ fn main() {
135135 . flag_if_supported ( "-Wbad-function-cast" )
136136 . flag_if_supported ( "-Wuninitialized" ) ;
137137
138+ // On Windows, link explicitly advapi32 for security functions
139+ #[ cfg( target_os = "windows" ) ]
140+ println ! ( "cargo:rustc-link-lib=advapi32" ) ;
141+
138142 if cfg ! ( feature = "posix-sem" ) {
139143 builder. define ( "MDB_USE_POSIX_SEM" , None ) ;
140144 }
You can’t perform that action at this time.
0 commit comments