summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2005-03-29 23:31:56 +0200
committerunknown <serg@serg.mylan>2005-03-29 23:31:56 +0200
commit3e2f7ed4f5e7d1611a074fac306419cfb4ad0cf4 (patch)
treec853a7b01b4fb3332559f5793b7e18566e56b81f /include
parentce3253cfd1a010d103eb9a6ca42fb65fa6667b9d (diff)
downloadmariadb-git-3e2f7ed4f5e7d1611a074fac306419cfb4ad0cf4.tar.gz
Fedora now defines read(2)/write(2) as macros.
Argh!
Diffstat (limited to 'include')
-rw-r--r--include/violite.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/violite.h b/include/violite.h
index 855d8a3d490..b89b01f95f4 100644
--- a/include/violite.h
+++ b/include/violite.h
@@ -138,8 +138,8 @@ int vio_close_shared_memory(Vio * vio);
#if defined(HAVE_VIO) && !defined(DONT_MAP_VIO)
#define vio_delete(vio) (vio)->viodelete(vio)
#define vio_errno(vio) (vio)->vioerrno(vio)
-#define vio_read(vio, buf, size) (vio)->read(vio,buf,size)
-#define vio_write(vio, buf, size) (vio)->write(vio, buf, size)
+#define vio_read(vio, buf, size) ((vio)->read)(vio,buf,size)
+#define vio_write(vio, buf, size) ((vio)->write)(vio, buf, size)
#define vio_blocking(vio, set_blocking_mode, old_mode)\
(vio)->vioblocking(vio, set_blocking_mode, old_mode)
#define vio_is_blocking(vio) (vio)->is_blocking(vio)