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
+++ libaio-0.3.111/src/libaio.h 2019-01-26 12:51:37.150000000 +0800
@@ -53,6 +53,7 @@
diff --git a/src/libaio.h b/src/libaio.h
index 2bc24e0..f44034d 100644
--- a/src/libaio.h
+++ b/src/libaio.h
@@ -54,6 +54,7 @@ typedef enum io_iocb_cmd {
#if defined(__i386__) || (defined(__arm__) && !defined(__ARMEB__)) || \
defined(__sh__) || defined(__bfin__) || defined(__MIPSEL__) || \
defined(__cris__) || (defined(__riscv) && __riscv_xlen == 32) || \
@ -8,7 +10,7 @@
(defined(__GNUC__) && defined(__BYTE_ORDER__) && \
__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ && __SIZEOF_LONG__ == 4)
#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(__sparc__) || defined(__MIPSEB__) || defined(__m68k__) || \
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
+++ libaio-0.3.111/src/syscall-x86_64.h 2019-02-14 04:14:05.585928959 -0500
@@ -1,5 +1,15 @@
diff --git a/src/syscall-x86_64.h b/src/syscall-x86_64.h
index 0eccef3..fd71da9 100644
--- a/src/syscall-x86_64.h
+++ b/src/syscall-x86_64.h
@@ -1,6 +1,16 @@
+#ifndef __NR_io_setup
#define __NR_io_setup 206
+#endif
@ -16,3 +18,4 @@
+#ifndef __NR_io_cancel
#define __NR_io_cancel 210
+#endif
#define __NR_io_pgetevents 333