From f41b2396457cd133eee0666538ecbf03691b0675 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 1 Apr 2009 20:27:59 +0200 Subject: [PATCH] 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 d107fc7a08..fc5b1d98af 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 318db787c4..a99c170df9 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 -- 2.32.0.93.g670b81a890