update to 0.3.112 and fix 5

This commit is contained in:
volcanodragon 2020-07-20 14:33:35 +08:00
parent 6889ac2753
commit e427fa02c0
2 changed files with 12 additions and 7 deletions

View File

@ -1,6 +1,8 @@
--- libaio-0.3.111_old/src/libaio.h 2019-01-26 10:54:53.202000000 +0800 diff --git a/src/libaio.h b/src/libaio.h
+++ libaio-0.3.111/src/libaio.h 2019-01-26 12:51:37.150000000 +0800 index 2bc24e0..f44034d 100644
@@ -53,6 +53,7 @@ --- a/src/libaio.h
+++ b/src/libaio.h
@@ -54,6 +54,7 @@ typedef enum io_iocb_cmd {
#if defined(__i386__) || (defined(__arm__) && !defined(__ARMEB__)) || \ #if defined(__i386__) || (defined(__arm__) && !defined(__ARMEB__)) || \
defined(__sh__) || defined(__bfin__) || defined(__MIPSEL__) || \ defined(__sh__) || defined(__bfin__) || defined(__MIPSEL__) || \
defined(__cris__) || (defined(__riscv) && __riscv_xlen == 32) || \ defined(__cris__) || (defined(__riscv) && __riscv_xlen == 32) || \
@ -8,7 +10,7 @@
(defined(__GNUC__) && defined(__BYTE_ORDER__) && \ (defined(__GNUC__) && defined(__BYTE_ORDER__) && \
__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ && __SIZEOF_LONG__ == 4) __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ && __SIZEOF_LONG__ == 4)
#define PADDED(x, y) x; unsigned y #define PADDED(x, y) x; unsigned y
@@ -84,6 +85,7 @@ @@ -85,6 +86,7 @@ typedef enum io_iocb_cmd {
(defined(__arm__) && defined(__ARMEB__)) || \ (defined(__arm__) && defined(__ARMEB__)) || \
defined(__sparc__) || defined(__MIPSEB__) || defined(__m68k__) || \ defined(__sparc__) || defined(__MIPSEB__) || defined(__m68k__) || \
defined(__hppa__) || defined(__frv__) || defined(__avr32__) || \ defined(__hppa__) || defined(__frv__) || defined(__avr32__) || \

View File

@ -1,6 +1,8 @@
--- libaio-0.3.111_old/src/syscall-x86_64.h 2019-02-14 04:09:48.632926019 -0500 diff --git a/src/syscall-x86_64.h b/src/syscall-x86_64.h
+++ libaio-0.3.111/src/syscall-x86_64.h 2019-02-14 04:14:05.585928959 -0500 index 0eccef3..fd71da9 100644
@@ -1,5 +1,15 @@ --- a/src/syscall-x86_64.h
+++ b/src/syscall-x86_64.h
@@ -1,6 +1,16 @@
+#ifndef __NR_io_setup +#ifndef __NR_io_setup
#define __NR_io_setup 206 #define __NR_io_setup 206
+#endif +#endif
@ -16,3 +18,4 @@
+#ifndef __NR_io_cancel +#ifndef __NR_io_cancel
#define __NR_io_cancel 210 #define __NR_io_cancel 210
+#endif +#endif
#define __NR_io_pgetevents 333