summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root>2008-06-03 05:12:51 +0000
committerroot <root>2008-06-03 05:12:51 +0000
commit15fb204816a82f20acadf93fddb055e18c6fcb85 (patch)
treee8e6c3d4aa35ef3c4a0b9b7e65096ff3ed60651d
parent37ad6568e8e787c9a79add8e6d2ea9f12b7712a8 (diff)
*** empty log message ***
-rw-r--r--eio.c2
-rw-r--r--eio.h8
2 files changed, 9 insertions, 1 deletions
diff --git a/eio.c b/eio.c
index a00d303..765d6d3 100644
--- a/eio.c
+++ b/eio.c
@@ -777,7 +777,7 @@ static int eio__futimes (int fd, const struct timeval tv[2])
# define readahead(fd,offset,count) eio__readahead (fd, offset, count, self)
static ssize_t
-eio__readahead (int fd, off_t offset, size_t count, worker *self)
+eio__readahead (int fd, off_t offset, size_t count, etp_worker *self)
{
size_t todo = count;
dBUF;
diff --git a/eio.h b/eio.h
index 687fcad..fe4a1b9 100644
--- a/eio.h
+++ b/eio.h
@@ -40,6 +40,10 @@
#ifndef EIO_H_
#define EIO_H_
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <stddef.h>
#include <sys/types.h>
@@ -219,5 +223,9 @@ void eio_destroy (eio_req *req);
ssize_t eio_sendfile_sync (int ofd, int ifd, off_t offset, size_t count);
+#ifdef __cplusplus
+}
+#endif
+
#endif