diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2019-06-17 18:04:22 +0100 |
---|---|---|
committer | Vladislav Vaintroub <wlad@mariadb.com> | 2019-06-17 18:04:47 +0100 |
commit | 81f60e8adeb241ed845427e0792349f3a05af99b (patch) | |
tree | 6e47dc4bda2d181b32f5911e81bbc8b0c27f4070 /mysys | |
parent | c8b5fa4afc6c233101b8163ef19c1abc1be0373d (diff) | |
download | mariadb-git-81f60e8adeb241ed845427e0792349f3a05af99b.tar.gz |
Portability fix.
Diffstat (limited to 'mysys')
-rw-r--r-- | mysys/my_pread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mysys/my_pread.c b/mysys/my_pread.c index 15586d00a6f..9713deebbe5 100644 --- a/mysys/my_pread.c +++ b/mysys/my_pread.c @@ -69,7 +69,7 @@ size_t my_pread(File Filedes, uchar *Buffer, size_t Count, my_off_t offset, if (readbytes != Count) { /* We should never read with wrong file descriptor! */ - DBUG_ASSERT(my_errno != 9); + DBUG_ASSERT(my_errno != EBADF); my_errno= errno; if (errno == 0 || (readbytes != (size_t) -1 && (MyFlags & (MY_NABP | MY_FNABP)))) |