Skip to content

Commit 516ac1c

Browse files
committed
fixup!
1 parent b950b6c commit 516ac1c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cutils.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@
3535
#include <windows.h>
3636
#include <process.h> // _beginthread
3737
#endif
38+
#if defined(__APPLE__)
39+
#include <mach-o/dyld.h>
40+
#endif
3841

3942
#include "cutils.h"
4043

@@ -1205,7 +1208,6 @@ int64_t js__gettimeofday_us(void) {
12051208
int js_exepath(char* buffer, size_t* size_ptr) {
12061209
int utf8_len, utf16_buffer_len, utf16_len;
12071210
WCHAR* utf16_buffer;
1208-
int err;
12091211

12101212
if (buffer == NULL || size_ptr == NULL || *size_ptr == 0) {
12111213
return -1;

0 commit comments

Comments
 (0)