--- Linux-AIO/AIO.xs 2005/07/09 22:45:06 1.29 +++ Linux-AIO/AIO.xs 2005/07/09 23:38:07 1.30 @@ -286,6 +286,10 @@ _syscall1(long, close, unsigned int, fd) _syscall1(long, unlink, char *, filename); _syscall1(long, fsync, unsigned int, fd); + +#ifndef __NR_fdatasync +# define __NR_fdatasync __NR_fsync +#endif _syscall1(long, fdatasync, unsigned int, fd); #if BYTE_ORDER == LITTLE_ENDIAN