Alexandre Julliard : libwine: Don' t export mmap functions for the Windows build.

Alexandre Julliard julliard at winehq.org
Thu Apr 2 10:42:40 CDT 2009


Module: wine
Branch: master
Commit: f41b2396457cd133eee0666538ecbf03691b0675
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f41b2396457cd133eee0666538ecbf03691b0675

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Apr  1 20:27:59 2009 +0200

libwine: Don't export mmap functions for the Windows build.

---

 libs/wine/mmap.c   |   29 ++++++++++-------------------
 libs/wine/wine.def |    5 -----
 2 files changed, 10 insertions(+), 24 deletions(-)

diff --git a/libs/wine/mmap.c b/libs/wine/mmap.c
index d107fc7..fc5b1d9 100644
--- a/libs/wine/mmap.c
+++ b/libs/wine/mmap.c
@@ -41,6 +41,8 @@
 #include "wine/library.h"
 #include "wine/list.h"
 
+#ifdef HAVE_MMAP
+
 struct reserved_area
 {
     struct list entry;
@@ -51,8 +53,6 @@ struct reserved_area
 static struct list reserved_areas = LIST_INIT(reserved_areas);
 static const unsigned int granularity_mask = 0xffff;  /* reserved areas have 64k granularity */
 
-#ifdef HAVE_MMAP
-
 #ifndef MAP_NORESERVE
 #define MAP_NORESERVE 0
 #endif
@@ -390,23 +390,6 @@ void mmap_init(void)
     reserve_dos_area();
 }
 
-#else /* HAVE_MMAP */
-
-void *wine_anon_mmap( void *start, size_t size, int prot, int flags )
-{
-    return (void *)-1;
-}
-
-static inline int munmap( void *ptr, size_t size )
-{
-    return 0;
-}
-
-void mmap_init(void)
-{
-}
-
-#endif
 
 /***********************************************************************
  *           wine_mmap_add_reserved_area
@@ -602,3 +585,11 @@ int wine_mmap_enum_reserved_areas( int (*enum_func)(void *base, size_t size, voi
     }
     return ret;
 }
+
+#else /* HAVE_MMAP */
+
+void mmap_init(void)
+{
+}
+
+#endif
diff --git a/libs/wine/wine.def b/libs/wine/wine.def
index 318db78..a99c170 100644
--- a/libs/wine/wine.def
+++ b/libs/wine/wine.def
@@ -49,7 +49,6 @@ EXPORTS
     toupperW
     vsnprintfW
     vsprintfW
-    wine_anon_mmap
     wine_call_on_stack
     wine_casemap_lower
     wine_casemap_upper
@@ -96,10 +95,6 @@ EXPORTS
     wine_ldt_is_system
     wine_ldt_realloc_entries
     wine_ldt_set_entry
-    wine_mmap_add_reserved_area
-    wine_mmap_enum_reserved_areas
-    wine_mmap_is_in_reserved_area
-    wine_mmap_remove_reserved_area
     wine_pthread_get_functions
     wine_pthread_set_functions
     wine_switch_to_stack




More information about the wine-cvs mailing list