Skip to content

Commit 65df6a4

Browse files
committed
Fix PathCanonicalize() API not being found for win32 build
Add shlwapi.h to access the prototype of the function of PathCanonicalize()
1 parent 6301972 commit 65df6a4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

openbsd-compat/realpath.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,8 @@ realpath(const char *path, char resolved[PATH_MAX])
203203

204204
#else
205205

206+
#include <Shlwapi.h>
207+
206208
void backslashconvert(char *str)
207209
{
208210
while (*str) {

0 commit comments

Comments
 (0)