--- IO-AIO/AIO.xs 2010/01/10 23:05:12 1.162 +++ IO-AIO/AIO.xs 2010/05/04 21:14:01 1.164 @@ -22,11 +22,6 @@ # include #endif -#if !_POSIX_MAPPED_FILES -# define mmap(addr,length,prot,flags,fd,offs) (errno = ENOSYS, -1) -# define munmap(addr,length) (errno = ENOSYS, -1) -#endif - /* perl namespace pollution */ #undef VERSION @@ -591,6 +586,11 @@ /*****************************************************************************/ +#if !_POSIX_MAPPED_FILES +# define mmap(addr,length,prot,flags,fd,offs) (errno = ENOSYS, -1) +# define munmap(addr,length) (errno = ENOSYS, -1) +#endif + #define MMAP_MAGIC PERL_MAGIC_ext static int @@ -664,8 +664,11 @@ const_iv (ENOSYS) const_iv (O_RDONLY) const_iv (O_WRONLY) + const_iv (O_RDWR) const_iv (O_CREAT) const_iv (O_TRUNC) + const_iv (O_EXCL) + const_iv (O_APPEND) #ifndef _WIN32 const_iv (S_IFIFO) #endif