changeset 26111:eb82d1524b6d

#include osdep/mman.h if sys/mman.h is not available. patch by KO Myung-Hun, komh chollian net
author diego
date Mon, 03 Mar 2008 09:47:01 +0000
parents 69790f7caffa
children 307973bd48ff
files loader/ext.c loader/ldt_keeper.c loader/pe_image.c loader/win32.c
diffstat 4 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/loader/ext.c	Mon Mar 03 03:02:36 2008 +0000
+++ b/loader/ext.c	Mon Mar 03 09:47:01 2008 +0000
@@ -20,6 +20,8 @@
 #include <unistd.h>
 #ifdef HAVE_SYS_MMAN_H
 #include <sys/mman.h>
+#else
+#include "osdep/mmap.h"
 #endif
 #include <errno.h>
 #include <fcntl.h>
--- a/loader/ldt_keeper.c	Mon Mar 03 03:02:36 2008 +0000
+++ b/loader/ldt_keeper.c	Mon Mar 03 09:47:01 2008 +0000
@@ -26,6 +26,8 @@
 #include <fcntl.h>
 #ifdef HAVE_SYS_MMAN_H
 #include <sys/mman.h>
+#else
+#include "osdep/mmap.h"
 #endif
 #include <sys/types.h>
 #include <stdio.h>
--- a/loader/pe_image.c	Mon Mar 03 03:02:36 2008 +0000
+++ b/loader/pe_image.c	Mon Mar 03 09:47:01 2008 +0000
@@ -51,6 +51,8 @@
 #include <fcntl.h>
 #ifdef HAVE_SYS_MMAN_H
 #include <sys/mman.h>
+#else
+#include "osdep/mmap.h"
 #endif
 #include "wine/windef.h"
 #include "wine/winbase.h"
--- a/loader/win32.c	Mon Mar 03 03:02:36 2008 +0000
+++ b/loader/win32.c	Mon Mar 03 09:47:01 2008 +0000
@@ -70,6 +70,8 @@
 
 #ifdef HAVE_SYS_MMAN_H
 #include <sys/mman.h>
+#else
+#include "osdep/mmap.h"
 #endif
 #include "osdep/mmap_anon.h"