Skip to content

Commit 40756c9

Browse files
committed
Fix Windows build with -DPLUGIN_PERFSCHEMA=NO
1 parent 316f0d8 commit 40756c9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

storage/innobase/include/os0file.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,10 +405,10 @@ to original un-instrumented file I/O APIs */
405405
os_file_read_no_error_handling_func(file, buf, offset, n)
406406
# define os_file_read_no_error_handling_int_fd( \
407407
file, buf, offset, n) \
408-
os_file_read_no_error_handling_func(file, buf, offset, n)
408+
os_file_read_no_error_handling_func(OS_FILE_FROM_FD(file), buf, offset, n)
409409

410410
# define os_file_write_int_fd(name, file, buf, offset, n) \
411-
os_file_write_func(name, file, buf, offset, n)
411+
os_file_write_func(name, OS_FILE_FROM_FD(file), buf, offset, n)
412412
# define os_file_write(name, file, buf, offset, n) \
413413
os_file_write_func(name, file, buf, offset, n)
414414

storage/xtradb/include/os0file.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,10 +469,10 @@ to original un-instrumented file I/O APIs */
469469
os_file_read_no_error_handling_func(file, buf, offset, n)
470470
# define os_file_read_no_error_handling_int_fd( \
471471
file, buf, offset, n) \
472-
os_file_read_no_error_handling_func(file, buf, offset, n)
472+
os_file_read_no_error_handling_func(OS_FILE_FROM_FD(file), buf, offset, n)
473473

474474
# define os_file_write_int_fd(name, file, buf, offset, n) \
475-
os_file_write_func(name, file, buf, offset, n)
475+
os_file_write_func(name, OS_FILE_FROM_FD(file), buf, offset, n)
476476
# define os_file_write(name, file, buf, offset, n) \
477477
os_file_write_func(name, file, buf, offset, n)
478478

0 commit comments

Comments
 (0)