summaryrefslogtreecommitdiff
path: root/mysys/my_read.c
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@montyprogram.com>2011-06-19 00:29:49 +0200
committerVladislav Vaintroub <wlad@montyprogram.com>2011-06-19 00:29:49 +0200
commit6cf9e92e74089dcc700d6f0577ef9e7208027442 (patch)
tree45bd9c482ab3ee3a8383f40cacbc06c5390438d5 /mysys/my_read.c
parent8fa05f426657e57ed6fe3f89f6f1f2ae0e622865 (diff)
downloadmariadb-git-6cf9e92e74089dcc700d6f0577ef9e7208027442.tar.gz
fix compile error on *nix
Diffstat (limited to 'mysys/my_read.c')
-rw-r--r--mysys/my_read.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mysys/my_read.c b/mysys/my_read.c
index 9c76193aa63..5fef4455f62 100644
--- a/mysys/my_read.c
+++ b/mysys/my_read.c
@@ -45,9 +45,9 @@ size_t my_read(File Filedes, uchar *Buffer, size_t Count, myf MyFlags)
{
errno= 0; /* Linux, Windows don't reset this on EOF/success */
#ifdef _WIN32
- readbytes= my_win_read(Filedes, Buffer, Count);
+ readbytes= my_win_read(Filedes, Buffer, Count);
#else
- readbytes= my_read(Fildes, Buffer, Count);
+ readbytes= read(Filedes, Buffer, Count);
#endif
if (readbytes != Count)
{