--- IO-AIO/AIO.xs 2006/10/25 17:57:30 1.74 +++ IO-AIO/AIO.xs 2006/10/26 06:44:48 1.75 @@ -49,6 +49,11 @@ # define NAME_MAX 4096 #endif +#ifndef PTHREAD_STACK_MIN +/* care for broken platforms, e.g. windows */ +# define PTHREAD_STACK_MIN 16384 +#endif + #if __ia64 # define STACKSIZE 65536 #elif __i386 || __x86_64 /* 16k is unreasonably high :( */ @@ -704,9 +709,9 @@ #endif #if !HAVE_READAHEAD -# define readahead aio_readahead +# define readahead(fd,offset,count) aio_readahead (fd, offset, count, self) -static ssize_t readahead (int fd, off_t offset, size_t count) +static ssize_t aio_readahead (int fd, off_t offset, size_t count, worker *self) { dBUF; @@ -721,6 +726,7 @@ errno = 0; } + #endif #if !HAVE_READDIR_R