Skip to content

Commit e125401

Browse files
author
fengyubiao
committed
try to fix the test 2
1 parent 49bd659 commit e125401

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

native-io/src/main/native-io-jni/cpp/native_io_jni.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,15 @@
2121
#define _GNU_SOURCE
2222

2323
#include <jni.h>
24-
#include <io.h>
2524
#include <errno.h>
2625
#include <fcntl.h>
2726
#include <stdlib.h>
2827
#include <string.h>
28+
#ifdef _WIN32
29+
#include <io.h>
30+
#else
2931
#include <unistd.h>
32+
#endif
3033

3134
#include <org_apache_bookkeeper_common_util_nativeio_NativeIOJni.h>
3235

0 commit comments

Comments
 (0)