瀏覽代碼

Work-around off_t being 32bits on Windows

This might need a more complete fix
Jean-Baptiste Kempf 9 年之前
父節點
當前提交
7f4d418a08
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      include/bdsm/smb_types.h

+ 3 - 1
include/bdsm/smb_types.h

@@ -39,9 +39,11 @@
 #include <stddef.h>
 #include <stdint.h>
 
+#define _FILE_OFFSET_BITS 64
+
 #include <libtasn1.h>
 
-#ifdef __ANDROID__
+#if defined(__ANDROID__)
 # undef  off_t
 # define off_t off64_t
 #endif