summaryrefslogtreecommitdiff
path: root/eio.c
diff options
context:
space:
mode:
authorroot <root>2008-05-11 00:06:25 +0000
committerroot <root>2008-05-11 00:06:25 +0000
commitbb92967cd6ae5888c071f8f2c8441825270ef2ba (patch)
tree4a336af7e69e41ac0e678d55b14b3764e4744acc /eio.c
parent6ecb7a8b6f0c086d9d5aba1bda289a0383e8f83f (diff)
*** empty log message ***
Diffstat (limited to 'eio.c')
-rw-r--r--eio.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/eio.c b/eio.c
index eb62d71..8cd9cc6 100644
--- a/eio.c
+++ b/eio.c
@@ -2,19 +2,16 @@
#include "xthread.h"
#include <errno.h>
-
-#include "EXTERN.h"
-#include "perl.h"
-#include "XSUB.h"
-
#include <stddef.h>
#include <stdlib.h>
+#include <string.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <limits.h>
#include <fcntl.h>
#include <sched.h>
+#include <dirent.h>
#ifndef EIO_FINISH
# define EIO_FINISH(req) ((req)->finish) && !EIO_CANCELLED (req) ? (req)->finish (req) : 0
@@ -573,7 +570,7 @@ static ssize_t aio_readahead (int fd, off_t offset, size_t count, worker *self)
{
size_t len = todo < EIO_BUFSIZE ? todo : EIO_BUFSIZE;
- pread (fd, aio_buf, len, offset);
+ pread (fd, eio_buf, len, offset);
offset += len;
todo -= len;
}