Portability fix.
This commit is contained in:
parent
c8b5fa4afc
commit
81f60e8ade
@ -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))))
|
||||
|
Loading…
x
Reference in New Issue
Block a user